зеркало из https://github.com/mozilla/gecko-dev.git
d8f302fe60
When 2nd or later line, the method inserts one-line text to start of a `Text` node following `<br>` which is inserted by the method. Then, splits the `Text` node to insert another `<br>`. This creates a lot of unnecessary `SplitNodeTransaction`s and that causes a lot of copying memory operation to set the data of the right `Text` node. This patch makes the method creates a `Text` node when inserting a middle line of inserting text. Therefore, `SplitNodeTransaction` is created at most one (to split a `Text` node if the caller wants to insert a text middle of it). Depends on D211697 Differential Revision: https://phabricator.services.mozilla.com/D211698 |
||
---|---|---|
.. | ||
composer | ||
docs | ||
libeditor | ||
reftests | ||
spellchecker | ||
txmgr | ||
AsyncSpellCheckTestHelper.sys.mjs | ||
moz.build | ||
nsIDocumentStateListener.idl | ||
nsIEditActionListener.idl | ||
nsIEditor.idl | ||
nsIEditorMailSupport.idl | ||
nsIEditorSpellCheck.idl | ||
nsIHTMLAbsPosEditor.idl | ||
nsIHTMLEditor.idl | ||
nsIHTMLInlineTableEditor.idl | ||
nsIHTMLObjectResizer.idl | ||
nsITableEditor.idl |