mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
bf1c1cfd11
It does 4 different things so that it looks like a black-box from the callers. First, only `HTMLEditRules::WillDoAction()` refers `aCancel` out argument. Therefore, it should check whether it's cancelled or not directly. Next, `EnsureNoPaddingBRElementForEmptyEditor()` should be called by each caller directly. Then, the renaming part can be split to 2 methods. One is adjusting caret position and the other preparing inline style for new content. Unfortunately, this patch makes each caller messy. I think that for the 3rd job (i.e., adjusting caret position), each caller should retrieve the adjusted caret position and use it directly instead of handling with `Selection` in the future. Differential Revision: https://phabricator.services.mozilla.com/D45493 --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 |