mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
13b14b9b2f
Despite of their names, `TextEditRules::mCachedSelectionNode` and `TextEditRules::mCachedSelectionOffset` are used only for calling `EditorBase::HandleInlineSpellCheck()` so that they should be renamed to explain the purpose. Additionally, they are not necessary to be in the heap since they are necessary until `TextEditRules::AfterEdit()` is called. Therefore, we can move them into `EditorBase::HandleInlineSpellCheck()`. Finally, `TextEditRules::BeforeEdit()` and `TextEditRules::AfterEdit()` are called only by `TextEditor::OnStartToHandleTopLevelEditSubAction()` and `TextEditor::OnEndHandlingTopLevelEditSubAction()`. Therefore, we can move the setter to `TextEditor::OnStartToHandleTopLevelEditSubAction()`. Differential Revision: https://phabricator.services.mozilla.com/D41396 --HG-- extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
composer | ||
libeditor | ||
reftests | ||
spellchecker | ||
txmgr | ||
AsyncSpellCheckTestHelper.jsm | ||
moz.build | ||
nsIDocumentStateListener.idl | ||
nsIEditActionListener.idl | ||
nsIEditor.idl | ||
nsIEditorMailSupport.idl | ||
nsIEditorObserver.idl | ||
nsIEditorSpellCheck.idl | ||
nsIEditorStyleSheets.idl | ||
nsIHTMLAbsPosEditor.idl | ||
nsIHTMLEditor.idl | ||
nsIHTMLInlineTableEditor.idl | ||
nsIHTMLObjectResizer.idl | ||
nsIPlaintextEditor.idl | ||
nsITableEditor.idl | ||
nsIURIRefObject.idl |