gecko-dev/editor
Masayuki Nakano ec22b93111 Bug 1540037 - part 7: Move EditorBase::PrepareToInsertBRElement() r=m_kato
Although this is called by
`EditorBase::InsertPaddingBRElementForEmptyLastLineWithTransaction()`, it's
mainly designed for `HTMLEditor`, but used by `TextEditor` too only when it
puts `<br>` element to the end of its anonymous `<div>` element.  Therefore,
when `TextEditor` calls
`InsertPaddingBRElementForEmptyLastLineWithTransaction()`, `aPointToInsert`
is not in a text node:
https://searchfox.org/mozilla-central/rev/158bac3df3a1890da55bdb6ffdaf9a7ffc0bfb0a/editor/libeditor/TextEditSubActionHandler.cpp#917-918,920

And it means that `PrepareToInsertBRElement()` does nothing:
https://searchfox.org/mozilla-central/rev/158bac3df3a1890da55bdb6ffdaf9a7ffc0bfb0a/editor/libeditor/EditorBase.cpp#1561,1569-1570

Therefore, we can move it into `HTMLEditor` and makes it possible to move
`EditorBase::SplitNodeWithTransaction()` called by `PrepareToInsertBRElement()`.

Differential Revision: https://phabricator.services.mozilla.com/D72831
2020-04-30 10:49:04 +00:00
..
composer
libeditor Bug 1540037 - part 7: Move EditorBase::PrepareToInsertBRElement() r=m_kato 2020-04-30 10:49:04 +00:00
reftests
spellchecker Bug 1633014 - Fix non-unified build errors in editor/. r=m_kato 2020-04-27 03:36:57 +00:00
txmgr Bug 1633014 - Fix non-unified build errors in editor/. r=m_kato 2020-04-27 03:36:57 +00:00
AsyncSpellCheckTestHelper.jsm
moz.build Bug 1449522 - Remove nsIEditorStyleSheets. r=masayuki,m_kato 2020-04-17 22:54:48 +00:00
nsIDocumentStateListener.idl
nsIEditActionListener.idl
nsIEditor.idl
nsIEditorMailSupport.idl
nsIEditorObserver.idl
nsIEditorSpellCheck.idl
nsIHTMLAbsPosEditor.idl
nsIHTMLEditor.idl
nsIHTMLInlineTableEditor.idl
nsIHTMLObjectResizer.idl
nsITableEditor.idl