mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
a43b290e4e
This patch implements computation of target ranges for this part: https://searchfox.org/mozilla-central/rev/73a14f1b367948faa571ed2fe5d7eb29460787c1/editor/libeditor/HTMLEditSubActionHandler.cpp#3099-3141 This patch adds some utility methods for computing the ranges. Currently, it's not yet standardized, but the other browser engines look for leaf content of another block when blocks are joined (or a block is deleted like this case). Therefore, we follow the behavior basically, but different from the other browsers, we should include invisible white-spaces into the range when they are included. That avoids the invisible white-spaces become visible when web apps do something instead of us. Note that utility methods have the code, but this patch does not use it because in this case, we just delete a empty block ancestor, not join it with previous/next block. Differential Revision: https://phabricator.services.mozilla.com/D88377 |
||
---|---|---|
.. | ||
composer | ||
libeditor | ||
reftests | ||
spellchecker | ||
txmgr | ||
AsyncSpellCheckTestHelper.jsm | ||
moz.build | ||
nsIDocumentStateListener.idl | ||
nsIEditActionListener.idl | ||
nsIEditor.idl | ||
nsIEditorMailSupport.idl | ||
nsIEditorObserver.idl | ||
nsIEditorSpellCheck.idl | ||
nsIHTMLAbsPosEditor.idl | ||
nsIHTMLEditor.idl | ||
nsIHTMLInlineTableEditor.idl | ||
nsIHTMLObjectResizer.idl | ||
nsITableEditor.idl |