gecko-dev/editor/libeditor
Masayuki Nakano 7ae8033ee1 Bug 1627175 - part 1: Move `HTMLEditor::IsBlockNode()` into `HTMLEditUtils` r=m_kato
`HTMLEditor::IsBlockNode()` is a virtual method derived from
`EditorBase::IsBlockNode()`.  For the performance, `EditorBase`'s one just
return false for text node and `<br>` element.  However, these check cost
is really cheap in these days.  Therefore, we can make `TextEditor` also
use rich API.

This patch moves `HTMLEditor::NodeIsBlockStatic()` and
`HTMLEditor::NodeIsInlineStatic()` to `HTMLEditUtils`, and removes the wrapper
of the fommer, `HTMLEditor::IsBlockNode()` and `WSRunScanner::IsBlockNode()`.

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

--HG--
extra : moz-landing-system : lando
2020-04-15 13:55: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 1627175 - part 1: Move `HTMLEditor::IsBlockNode()` into `HTMLEditUtils` r=m_kato 2020-04-15 13:55:36 +00:00
EditorBase.h Bug 1627175 - part 1: Move `HTMLEditor::IsBlockNode()` into `HTMLEditUtils` r=m_kato 2020-04-15 13:55:36 +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 1627175 - part 1: Move `HTMLEditor::IsBlockNode()` into `HTMLEditUtils` r=m_kato 2020-04-15 13:55:36 +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 1627175 - part 1: Move `HTMLEditor::IsBlockNode()` into `HTMLEditUtils` r=m_kato 2020-04-15 13:55:36 +00:00
HTMLEditUtils.cpp Bug 1627175 - part 1: Move `HTMLEditor::IsBlockNode()` into `HTMLEditUtils` r=m_kato 2020-04-15 13:55:36 +00:00
HTMLEditUtils.h Bug 1627175 - part 1: Move `HTMLEditor::IsBlockNode()` into `HTMLEditUtils` r=m_kato 2020-04-15 13:55:36 +00:00
HTMLEditor.cpp Bug 1627175 - part 1: Move `HTMLEditor::IsBlockNode()` into `HTMLEditUtils` r=m_kato 2020-04-15 13:55:36 +00:00
HTMLEditor.h Bug 1627175 - part 1: Move `HTMLEditor::IsBlockNode()` into `HTMLEditUtils` r=m_kato 2020-04-15 13:55: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 1627175 - part 1: Move `HTMLEditor::IsBlockNode()` into `HTMLEditUtils` r=m_kato 2020-04-15 13:55:36 +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 1627175 - part 1: Move `HTMLEditor::IsBlockNode()` into `HTMLEditUtils` r=m_kato 2020-04-15 13:55:36 +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 1629474 - Avoid warnings when initializing empty editors. r=masayuki 2020-04-13 08:55:41 +00:00
TextEditor.h Bug 1628192 - Use more const declarations on editor classes. r=masayuki 2020-04-13 01:43:41 +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 1627175 - part 1: Move `HTMLEditor::IsBlockNode()` into `HTMLEditUtils` r=m_kato 2020-04-15 13:55:36 +00:00
WSRunObject.h Bug 1627175 - part 1: Move `HTMLEditor::IsBlockNode()` into `HTMLEditUtils` r=m_kato 2020-04-15 13:55:36 +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