mirror of
				https://github.com/mozilla/gecko-dev.git
				synced 2025-11-04 10:18:41 +02:00 
			
		
		
		
	Bug 1385525 - Part 1: Speed up EditorBase::SetTextImpl() by actually bypassing all of the editor transaction management machinery; r=masayuki
This commit is contained in:
		
							parent
							
								
									b4ce93f7da
								
							
						
					
					
						commit
						18170165f0
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
					@ -2751,7 +2751,10 @@ EditorBase::SetTextImpl(Selection& aSelection, const nsAString& aString,
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  nsresult rv = DoTransaction(&aSelection, transaction);
 | 
					  // We don't support undo here, so we don't really need all of the transaction
 | 
				
			||||||
 | 
					  // machinery, therefore we can run our transaction directly, breaking all of
 | 
				
			||||||
 | 
					  // the rules!
 | 
				
			||||||
 | 
					  nsresult rv = transaction->DoTransaction();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Let listeners know what happened
 | 
					  // Let listeners know what happened
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue