gecko-dev/editor/libeditor
Masayuki Nakano d5ed5e0fc6 Bug 1751679 - Make WhiteSpaceVisibilityKeeper::MergeFirstLineOfRightBlockElementIntoAncestorLeftBlockElement track DOM points while the DOM tree is being changed r=m_kato
The method caches a DOM point, but it is not tracked correctly.

This patch adds some validations into it and one of its callee,
`HTMLEditor::MoveOneHardLineContents`.  Additionally, making
`EditorDOMPointBase::Offset` avoid accessing `Maybe`'s storage when it's
`Nothing` in release builds as the last resort.

Differential Revision: https://phabricator.services.mozilla.com/D136994
2022-02-09 00:45:33 +00:00
..
crashtests Bug 1725850 - part 30: Port editor/libeditor/crashtests/716456-1.html to WPT r=saschanaz 2021-10-29 09:29:24 +00:00
tests Bug 1751325 - Run mochitest-plain fission-xorig everywhere. r=mccr8 2022-01-21 19:16:12 +00:00
ChangeAttributeTransaction.cpp
ChangeAttributeTransaction.h
ChangeStyleTransaction.cpp
ChangeStyleTransaction.h
CompositionTransaction.cpp
CompositionTransaction.h
CreateElementTransaction.cpp Bug 1742744 - part 1: Make CreateElementTransaction::InsertNode() not return error if reference child is disconnected r=m_kato 2021-11-26 05:26:35 +00:00
CreateElementTransaction.h Bug 1740872 - part 1: Move EditorBase::CreateElementWithTransaction() into HTMLEditor r=m_kato 2021-11-17 04:08:46 +00:00
CSSEditUtils.cpp Bug 1745882 - Move all editor prefs in all.js to StaticPrefList.yaml r=m_kato 2021-12-15 05:17:52 +00:00
CSSEditUtils.h
DeleteNodeTransaction.cpp
DeleteNodeTransaction.h
DeleteRangeTransaction.cpp Bug 1734507 - Make TextEditor guarantee that ranges to delete are in the text node r=saschanaz 2021-12-08 21:37:22 +00:00
DeleteRangeTransaction.h
DeleteTextTransaction.cpp
DeleteTextTransaction.h
EditAction.h
EditActionListener.h
EditAggregateTransaction.cpp
EditAggregateTransaction.h
EditorBase.cpp Bug 1747132 - part 1: Make EditorBase::IsSelectionEditable() return false if selection is accidentally in a native anonymous subtree r=m_kato 2021-12-25 21:58:43 +00:00
EditorBase.h Bug 787434 - part 1: Make HTMLEditor stop removing empty elements of inserted content r=m_kato 2022-02-02 00:44:53 +00:00
EditorCommands.cpp
EditorCommands.h
EditorController.cpp
EditorController.h
EditorDOMPoint.h Bug 1751679 - Make WhiteSpaceVisibilityKeeper::MergeFirstLineOfRightBlockElementIntoAncestorLeftBlockElement track DOM points while the DOM tree is being changed r=m_kato 2022-02-09 00:45:33 +00:00
EditorEventListener.cpp Bug 1455514 - part 1: Add accessors and static helper methods to retrieve nsINode or its concrete classes from EventTarget r=smaug 2021-11-02 13:03:43 +00:00
EditorEventListener.h
EditorUtils.cpp Bug 1735446 - part 4: Make Selection::GetRangeAt() take uint32_t instead of int32_t r=smaug 2021-12-09 07:35:09 +00:00
EditorUtils.h Bug 1735446 - part 4: Make Selection::GetRangeAt() take uint32_t instead of int32_t r=smaug 2021-12-09 07:35:09 +00:00
EditTransactionBase.cpp
EditTransactionBase.h
HTMLAbsPositionEditor.cpp Bug 1745882 - Move all editor prefs in all.js to StaticPrefList.yaml r=m_kato 2021-12-15 05:17:52 +00:00
HTMLAnonymousNodeEditor.cpp
HTMLEditHelpers.cpp Bug 1739526 - Move some trivial classes defined in EditorUtils.h but used only by HTMEditor or its helper classes to `HTMLEditHelpers.h" r=m_kato 2021-11-05 14:10:49 +00:00
HTMLEditHelpers.h Bug 1735446 - part 4: Make Selection::GetRangeAt() take uint32_t instead of int32_t r=smaug 2021-12-09 07:35:09 +00:00
HTMLEditor.cpp Bug 1747132 - part 2: Make HTMLEditor::GetActiveEditingHost() return nullptr if selection is in a native anonymous subtree r=m_kato 2021-12-25 21:58:44 +00:00
HTMLEditor.h Bug 1752914 - part 2: Make HTMLEditor sanitize selection ranges in native anonymous subtrees before handling them r=m_kato 2022-02-04 13:21:04 +00:00
HTMLEditorCommands.cpp
HTMLEditorController.cpp
HTMLEditorController.h
HTMLEditorDataTransfer.cpp Bug 787434 - part 2: Make HTMLWithContextInserter::FragmentFromPasteCreator delete incomplete list elements in the inserting fragment r=mbrodesser 2022-02-02 00:44:54 +00:00
HTMLEditorDeleteHandler.cpp Bug 1751679 - Make WhiteSpaceVisibilityKeeper::MergeFirstLineOfRightBlockElementIntoAncestorLeftBlockElement track DOM points while the DOM tree is being changed r=m_kato 2022-02-09 00:45:33 +00:00
HTMLEditorDocumentCommands.cpp
HTMLEditorEventListener.cpp Bug 1455514 - part 1: Add accessors and static helper methods to retrieve nsINode or its concrete classes from EventTarget r=smaug 2021-11-02 13:03:43 +00:00
HTMLEditorEventListener.h
HTMLEditorObjectResizer.cpp Bug 1745882 - Move all editor prefs in all.js to StaticPrefList.yaml r=m_kato 2021-12-15 05:17:52 +00:00
HTMLEditorState.cpp
HTMLEditSubActionHandler.cpp Bug 1752914 - part 2: Make HTMLEditor sanitize selection ranges in native anonymous subtrees before handling them r=m_kato 2022-02-04 13:21:04 +00:00
HTMLEditUtils.cpp Bug 787434 - part 2: Make HTMLWithContextInserter::FragmentFromPasteCreator delete incomplete list elements in the inserting fragment r=mbrodesser 2022-02-02 00:44:54 +00:00
HTMLEditUtils.h Bug 787434 - part 2: Make HTMLWithContextInserter::FragmentFromPasteCreator delete incomplete list elements in the inserting fragment r=mbrodesser 2022-02-02 00:44:54 +00:00
HTMLInlineTableEditor.cpp
HTMLStyleEditor.cpp Bug 1752668 - Restore null-check in HTMLEditor::ClearStyleAt r=m_kato 2022-01-31 17:15:35 +00:00
HTMLTableEditor.cpp Bug 1718825 - Treat strong pointers which are members of class/struct and marked as MOZ_KNOWN_LIVE as safe r=andi 2022-02-02 00:48:19 +00:00
InsertNodeTransaction.cpp
InsertNodeTransaction.h
InsertTextTransaction.cpp
InsertTextTransaction.h
InternetCiter.cpp Bug 1722484 Part 2 - Replace LineBreaker::Next() and WordBreaker::Next() with the new iterators. r=m_kato 2021-11-09 01:14:15 +00:00
InternetCiter.h
JoinNodeTransaction.cpp Bug 1639287 - part 1: Make JoinNodeTransaction::UndoTransaction() use HTMLEditor::DoSplitNode() r=m_kato 2021-11-29 10:17:21 +00:00
JoinNodeTransaction.h
ManualNAC.h
moz.build Bug 1738401 - Remove -Wno-shadow warning suppressions. r=firefox-build-system-reviewers,glandium 2021-12-01 06:40:04 +00:00
PlaceholderTransaction.cpp
PlaceholderTransaction.h
ReplaceTextTransaction.cpp
ReplaceTextTransaction.h
SelectionState.cpp Bug 1735446 - part 4: Make Selection::GetRangeAt() take uint32_t instead of int32_t r=smaug 2021-12-09 07:35:09 +00:00
SelectionState.h Bug 1740847 - part 2: Make WhiteSpaceVisibilityKeeper::InsertBRElement() track insert position in smaller block r=m_kato 2021-11-12 08:04:37 +00:00
SplitNodeTransaction.cpp Bug 1639287 - part 2: Make SplitNodeTransaction::RedoTransaction() use HTMLEditor::DoSplitNode() r=m_kato 2021-11-29 10:17:21 +00:00
SplitNodeTransaction.h
TextEditor.cpp Bug 1455514 - part 1: Add accessors and static helper methods to retrieve nsINode or its concrete classes from EventTarget r=smaug 2021-11-02 13:03:43 +00:00
TextEditor.h Bug 1734507 - Make TextEditor guarantee that ranges to delete are in the text node r=saschanaz 2021-12-08 21:37:22 +00:00
TextEditorDataTransfer.cpp
TextEditSubActionHandler.cpp Bug 1734507 - Make TextEditor guarantee that ranges to delete are in the text node r=saschanaz 2021-12-08 21:37:22 +00:00
TypeInState.cpp Bug 1455514 - part 1: Add accessors and static helper methods to retrieve nsINode or its concrete classes from EventTarget r=smaug 2021-11-02 13:03:43 +00:00
TypeInState.h
WSRunObject.cpp Bug 1751679 - Make WhiteSpaceVisibilityKeeper::MergeFirstLineOfRightBlockElementIntoAncestorLeftBlockElement track DOM points while the DOM tree is being changed r=m_kato 2022-02-09 00:45:33 +00:00
WSRunObject.h