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:
Ehsan Akhgari 2017-07-28 22:47:10 -04:00
parent b4ce93f7da
commit 18170165f0

View File

@ -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
{