gecko-dev/editor/libeditor
Masayuki Nakano 39b3ec6675 Bug 1624007 - Don't check `IsSelectionRangeContainerNotContent()` for/in `GetElementOrParentElement*()` r=m_kato
We can relax about `GetElementOrParentElement*()` because they just return
`nullptr` when selection anchor is a `Document` node.

Additionally, this patch renames the internal APIs to the names similar to
modern DOM API.

Finally, this adds automated test for
`nsIHTMLEditor.getElementOrParentByTagName()`.

Differential Revision: https://phabricator.services.mozilla.com/D70152

--HG--
extra : moz-landing-system : lando
2020-04-09 10:10:36 +00:00
..
crashtests Bug 1624007 - Don't check `IsSelectionRangeContainerNotContent()` for/in `GetElementOrParentElement*()` r=m_kato 2020-04-09 10:10:36 +00:00
tests Bug 1624007 - Don't check `IsSelectionRangeContainerNotContent()` for/in `GetElementOrParentElement*()` r=m_kato 2020-04-09 10:10:36 +00:00
CSSEditUtils.cpp Bug 1627573 - part 4: Mark `CSSEditUtils` methods which refer computed style as `MOZ_CAN_RUN_SCRIPT` r=m_kato 2020-04-09 10:10:34 +00:00
CSSEditUtils.h Bug 1627573 - part 4: Mark `CSSEditUtils` methods which refer computed style as `MOZ_CAN_RUN_SCRIPT` r=m_kato 2020-04-09 10:10:34 +00:00
ChangeAttributeTransaction.cpp Bug 1619914 - part 1: Make each transaction class grab their members with local variable before touching the DOM tree r=m_kato 2020-04-03 08:30:37 +00:00
ChangeAttributeTransaction.h Bug 1619914 - part 2: Mark transaction class methods and their caller methods as `MOZ_CAN_RUN_SCRIPT r=m_kato 2020-04-03 08:32:01 +00:00
ChangeStyleTransaction.cpp Bug 1619914 - part 1: Make each transaction class grab their members with local variable before touching the DOM tree r=m_kato 2020-04-03 08:30:37 +00:00
ChangeStyleTransaction.h Bug 1619914 - part 2: Mark transaction class methods and their caller methods as `MOZ_CAN_RUN_SCRIPT r=m_kato 2020-04-03 08:32:01 +00:00
CompositionTransaction.cpp Bug 1619914 - part 2: Mark transaction class methods and their caller methods as `MOZ_CAN_RUN_SCRIPT r=m_kato 2020-04-03 08:32:01 +00:00
CompositionTransaction.h Bug 1619914 - part 2: Mark transaction class methods and their caller methods as `MOZ_CAN_RUN_SCRIPT r=m_kato 2020-04-03 08:32:01 +00:00
CreateElementTransaction.cpp Bug 1619914 - part 2: Mark transaction class methods and their caller methods as `MOZ_CAN_RUN_SCRIPT r=m_kato 2020-04-03 08:32:01 +00:00
CreateElementTransaction.h Bug 1619914 - part 2: Mark transaction class methods and their caller methods as `MOZ_CAN_RUN_SCRIPT r=m_kato 2020-04-03 08:32:01 +00:00
DeleteNodeTransaction.cpp Bug 1619914 - part 1: Make each transaction class grab their members with local variable before touching the DOM tree r=m_kato 2020-04-03 08:30:37 +00:00
DeleteNodeTransaction.h Bug 1619914 - part 2: Mark transaction class methods and their caller methods as `MOZ_CAN_RUN_SCRIPT r=m_kato 2020-04-03 08:32:01 +00:00
DeleteRangeTransaction.cpp Bug 1619914 - part 1: Make each transaction class grab their members with local variable before touching the DOM tree r=m_kato 2020-04-03 08:30:37 +00:00
DeleteRangeTransaction.h Bug 1619914 - part 2: Mark transaction class methods and their caller methods as `MOZ_CAN_RUN_SCRIPT r=m_kato 2020-04-03 08:32:01 +00:00
DeleteTextTransaction.cpp Bug 1619914 - part 2: Mark transaction class methods and their caller methods as `MOZ_CAN_RUN_SCRIPT r=m_kato 2020-04-03 08:32:01 +00:00
DeleteTextTransaction.h
EditAction.h Bug 1611751 - Remove unused scriptable methods of `nsIHTMLEditor`, `nsIEditorStyleSheets` and `nsITableEditor` r=m_kato 2020-01-30 08:50:41 +00:00
EditActionListener.h
EditAggregateTransaction.cpp Bug 1619914 - part 2: Mark transaction class methods and their caller methods as `MOZ_CAN_RUN_SCRIPT r=m_kato 2020-04-03 08:32:01 +00:00
EditAggregateTransaction.h Bug 1619914 - part 2: Mark transaction class methods and their caller methods as `MOZ_CAN_RUN_SCRIPT r=m_kato 2020-04-03 08:32:01 +00:00
EditTransactionBase.cpp Bug 1620504 - part 23: Fix some inconsistent coding style in editor r=m_kato 2020-03-22 10:46:39 +00:00
EditTransactionBase.h Bug 1619914 - part 2: Mark transaction class methods and their caller methods as `MOZ_CAN_RUN_SCRIPT r=m_kato 2020-04-03 08:32:01 +00:00
EditorBase.cpp Bug 1619914 - part 2: Mark transaction class methods and their caller methods as `MOZ_CAN_RUN_SCRIPT r=m_kato 2020-04-03 08:32:01 +00:00
EditorBase.h Bug 1619914 - part 2: Mark transaction class methods and their caller methods as `MOZ_CAN_RUN_SCRIPT r=m_kato 2020-04-03 08:32:01 +00:00
EditorCommands.cpp Bug 1620504 - part 11: Clean up warnings in editor command classes r=m_kato 2020-03-10 04:34:15 +00:00
EditorCommands.h Bug 1627573 - part 4: Mark `CSSEditUtils` methods which refer computed style as `MOZ_CAN_RUN_SCRIPT` r=m_kato 2020-04-09 10:10:34 +00:00
EditorController.cpp
EditorController.h
EditorDOMPoint.h Bug 1496320 - part 1: Make `TypeInState` clear "link style" when it detects caret coming from outside of current link r=m_kato 2020-04-06 03:52:53 +00:00
EditorEventListener.cpp Bug 1619914 - part 2: Mark transaction class methods and their caller methods as `MOZ_CAN_RUN_SCRIPT r=m_kato 2020-04-03 08:32:01 +00:00
EditorEventListener.h Bug 1619914 - part 2: Mark transaction class methods and their caller methods as `MOZ_CAN_RUN_SCRIPT r=m_kato 2020-04-03 08:32:01 +00:00
EditorUtils.cpp Bug 1588688 - part 8: Make `HTMLEditor::DoInsertHTMLWithContext()` and its helper methods use array of `nsIContent` rather than `nsINode` r=m_kato 2020-02-14 07:16:27 +00:00
EditorUtils.h Bug 1624007 - Don't check `IsSelectionRangeContainerNotContent()` for/in `GetElementOrParentElement*()` r=m_kato 2020-04-09 10:10:36 +00:00
HTMLAbsPositionEditor.cpp Bug 1627573 - part 4: Mark `CSSEditUtils` methods which refer computed style as `MOZ_CAN_RUN_SCRIPT` r=m_kato 2020-04-09 10:10:34 +00:00
HTMLAnonymousNodeEditor.cpp Bug 1624007 - Don't check `IsSelectionRangeContainerNotContent()` for/in `GetElementOrParentElement*()` r=m_kato 2020-04-09 10:10:36 +00:00
HTMLEditSubActionHandler.cpp Bug 1627573 - part 4: Mark `CSSEditUtils` methods which refer computed style as `MOZ_CAN_RUN_SCRIPT` r=m_kato 2020-04-09 10:10:34 +00:00
HTMLEditUtils.cpp Bug 1581034 - part 2: Get rid of `TextEditUtils::IsBreak()` and `TextEditUtils` itself r=m_kato 2019-09-18 12:37:14 +00:00
HTMLEditUtils.h Bug 253870 - Make disabled form controls selectable. r=masayuki,MarcoZ 2020-03-19 13:18:16 +00:00
HTMLEditor.cpp Bug 1624007 - Don't check `IsSelectionRangeContainerNotContent()` for/in `GetElementOrParentElement*()` r=m_kato 2020-04-09 10:10:36 +00:00
HTMLEditor.h Bug 1624007 - Don't check `IsSelectionRangeContainerNotContent()` for/in `GetElementOrParentElement*()` r=m_kato 2020-04-09 10:10:36 +00:00
HTMLEditorCommands.cpp Bug 1627573 - part 4: Mark `CSSEditUtils` methods which refer computed style as `MOZ_CAN_RUN_SCRIPT` r=m_kato 2020-04-09 10:10:34 +00:00
HTMLEditorController.cpp
HTMLEditorController.h
HTMLEditorDataTransfer.cpp Bug 1625755 - Make `HTMLEditor::DoInsertHTMLWithContext()` check whether inserted content stays at expected point before modifying next insertion point r=m_kato 2020-04-02 14:03:14 +00:00
HTMLEditorDocumentCommands.cpp Bug 1620504 - part 11: Clean up warnings in editor command classes r=m_kato 2020-03-10 04:34:15 +00:00
HTMLEditorEventListener.cpp Bug 1624007 - Don't check `IsSelectionRangeContainerNotContent()` for/in `GetElementOrParentElement*()` r=m_kato 2020-04-09 10:10:36 +00:00
HTMLEditorEventListener.h Bug 1620504 - part 12: Clean up warnings in EditorEventListener r=m_kato 2020-03-10 07:54:29 +00:00
HTMLEditorObjectResizer.cpp Bug 1627573 - part 4: Mark `CSSEditUtils` methods which refer computed style as `MOZ_CAN_RUN_SCRIPT` r=m_kato 2020-04-09 10:10:34 +00:00
HTMLInlineTableEditor.cpp Bug 1620504 - part 22-7: Clean up warnings in HTMLInlineTableEditor.cpp r=m_kato 2020-03-19 12:29:51 +00:00
HTMLStyleEditor.cpp Bug 1627573 - part 4: Mark `CSSEditUtils` methods which refer computed style as `MOZ_CAN_RUN_SCRIPT` r=m_kato 2020-04-09 10:10:34 +00:00
HTMLTableEditor.cpp Bug 1624007 - Don't check `IsSelectionRangeContainerNotContent()` for/in `GetElementOrParentElement*()` r=m_kato 2020-04-09 10:10:36 +00:00
InsertNodeTransaction.cpp Bug 1619914 - part 2: Mark transaction class methods and their caller methods as `MOZ_CAN_RUN_SCRIPT r=m_kato 2020-04-03 08:32:01 +00:00
InsertNodeTransaction.h Bug 1620135 - Clean up trivial constructor and destructor under libeditor r=m_kato 2020-03-06 04:38:25 +00:00
InsertTextTransaction.cpp Bug 1619914 - part 2: Mark transaction class methods and their caller methods as `MOZ_CAN_RUN_SCRIPT r=m_kato 2020-04-03 08:32:01 +00:00
InsertTextTransaction.h Bug 1620135 - Clean up trivial constructor and destructor under libeditor r=m_kato 2020-03-06 04:38:25 +00:00
InternetCiter.cpp
InternetCiter.h
JoinNodeTransaction.cpp Bug 1619914 - part 2: Mark transaction class methods and their caller methods as `MOZ_CAN_RUN_SCRIPT r=m_kato 2020-04-03 08:32:01 +00:00
JoinNodeTransaction.h Bug 1619914 - part 1: Make each transaction class grab their members with local variable before touching the DOM tree r=m_kato 2020-04-03 08:30:37 +00:00
ManualNAC.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in editor. r=masayuki 2020-03-04 09:10:03 +00:00
PlaceholderTransaction.cpp Bug 1620504 - part 20: Clean up warnings in SelectionState and related classes r=m_kato 2020-03-16 09:57:58 +00:00
PlaceholderTransaction.h Bug 1619914 - part 2: Mark transaction class methods and their caller methods as `MOZ_CAN_RUN_SCRIPT r=m_kato 2020-04-03 08:32:01 +00:00
SelectionState.cpp Bug 1620504 - part 20: Clean up warnings in SelectionState and related classes r=m_kato 2020-03-16 09:57:58 +00:00
SelectionState.h Bug 1620504 - part 20: Clean up warnings in SelectionState and related classes r=m_kato 2020-03-16 09:57:58 +00:00
SplitNodeTransaction.cpp Bug 1619914 - part 2: Mark transaction class methods and their caller methods as `MOZ_CAN_RUN_SCRIPT r=m_kato 2020-04-03 08:32:01 +00:00
SplitNodeTransaction.h Bug 1619914 - part 2: Mark transaction class methods and their caller methods as `MOZ_CAN_RUN_SCRIPT r=m_kato 2020-04-03 08:32:01 +00:00
TextEditSubActionHandler.cpp Bug 253870 - Make disabled form controls selectable. r=masayuki,MarcoZ 2020-03-19 13:18:16 +00:00
TextEditor.cpp Bug 253870 - Make disabled form controls selectable. r=masayuki,MarcoZ 2020-03-19 13:18:16 +00:00
TextEditor.h Bug 1625834 - Replace MOZ_MUST_USE with [[nodiscard]] in editor. r=masayuki 2020-04-02 05:43:31 +00:00
TextEditorDataTransfer.cpp Bug 1620504 - part 21: Clean up warnings in TextEditor r=m_kato 2020-03-18 01:14:42 +00:00
TypeInState.cpp Bug 1496320 - part 1: Make `TypeInState` clear "link style" when it detects caret coming from outside of current link r=m_kato 2020-04-06 03:52:53 +00:00
TypeInState.h Bug 1496320 - part 1: Make `TypeInState` clear "link style" when it detects caret coming from outside of current link r=m_kato 2020-04-06 03:52:53 +00:00
WSRunObject.cpp Bug 1625633 - part 4: Move `WSType` into `WSRunScanner` to hide it from `HTMLEditor` r=m_kato 2020-03-31 15:46:56 +00:00
WSRunObject.h Bug 1625834 - Replace MOZ_MUST_USE with [[nodiscard]] in editor. r=masayuki 2020-04-02 05:43:31 +00:00
moz.build Bug 1628200 - Fix config/tests/test_mozbuild_reading.py. r=rstewart 2020-04-09 00:24:29 +00:00
nsIAbsorbingTransaction.h Bug 1620504 - part 17: Clean up warnings in PlaceholderTransaction r=m_kato 2020-03-11 02:11:52 +00:00