mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
ed99e91ef8
Currently, the `<br>` element type -- whether normal `<br>` element or padding `<br>` element for empty editor or last line -- is managed by the flags of `nsINode`. Therefore, changing the flag does not cause mutation, so `IMEContentObserver` cannot observe the type changes. However, `ContentEventHandler` treats the padding `<br>` elements as invisible. Therefore, when a `<br>` element becomes a padding one, `IMEContentObserver` needs to notify IME of atext removed notification, and also when a `<br>` element becomes a normal one (i.e., visible), `IMEContentObserver` needs to notify IME of a text added notification. Therefore, this patch makes `EditorBase` disconnect the `<br>` element temporarily to make `IMEContentObserver` observable the type change. Depends on D211698 Differential Revision: https://phabricator.services.mozilla.com/D211699 |
||
---|---|---|
.. | ||
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 |