mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00: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
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user