gecko-dev/editor
Masayuki Nakano c06378ebc9 Bug 1413181 - part 13: HTMLEditRules::MaybeSplitAncestorsForInsert() should be able to return a DOM point in text node r=m_kato
HTMLEditRules::MaybeSplitAncestorsForInsert() may be called with a point in a
text and it needs to return given split point as is.  Additionally, the given
point may be in a text node.  So, it may not be represented with an
nsCOMPtr<nsIContent>.

Therefore, we need to add new member, EditorDOMPoint, to SplitNodeResult and
when MaybeSplitAncestorsForInsert() needs to return the given point as is,
it should use it.

Note that if the methods which return SplitNodeResult split some nodes actually,
the left node and/or the right node may be removed from the DOM tree.  In this
case, EditorDOMPoint cannot store such orphan node.  Therefore, we cannot
make mNextNode nor mPreviousNode EditorDOMPoint.

MozReview-Commit-ID: LwH8RZzkrmT

--HG--
extra : rebase_source : a5ae2328bef3d887c0bf4e1b9c4a4247b93a4ac0
2017-11-19 11:05:26 +09:00
..
composer Bug 1416622 - Tighten up libpref's process checking. r=glandium 2017-11-13 09:19:55 +11:00
libeditor Bug 1413181 - part 13: HTMLEditRules::MaybeSplitAncestorsForInsert() should be able to return a DOM point in text node r=m_kato 2017-11-19 11:05:26 +09:00
reftests Bug 464450 - Get rid of the padded class and clean up related styling. r=mak 2017-11-07 14:15:19 +01:00
txmgr Bug 1413013 - Remove unused nsITransactionList. r=masayuki 2017-10-30 20:35:00 +00:00
txtsvc Bug 1413181 - part 4: Redesign nsIEditActionListener::DidSplitNode() r=m_kato 2017-11-13 23:52:16 +09:00
AsyncSpellCheckTestHelper.jsm
moz.build Bug 1417400 - Get rid of nsIContentFilter. r=masayuki 2017-11-16 13:36:10 +09:00
nsEditorCID.h
nsIDocumentStateListener.idl
nsIEditActionListener.idl Bug 1413181 - part 4: Redesign nsIEditActionListener::DidSplitNode() r=m_kato 2017-11-13 23:52:16 +09:00
nsIEditor.idl
nsIEditorMailSupport.idl
nsIEditorObserver.idl
nsIEditorSpellCheck.idl
nsIEditorStyleSheets.idl
nsIEditorUtils.idl
nsIHTMLAbsPosEditor.idl
nsIHTMLEditor.idl Bug 1417400 - Get rid of nsIContentFilter. r=masayuki 2017-11-16 13:36:10 +09:00
nsIHTMLInlineTableEditor.idl
nsIHTMLObjectResizer.idl
nsIPlaintextEditor.idl
nsITableEditor.idl
nsIURIRefObject.idl
nsPIEditorTransaction.idl