fune/editor
Masayuki Nakano 6eb2ebcafb Bug 1865729 - part 1: Make AutoMoveOneLineHandler make AutoRangeArray work with BlockInlineCheck::UseComputedDisplayOutsideStyle r=m_kato
`AutoMoveOneLineHandler` uses `AutoRangeArray` API for block level edit
sub-actions.  Therefore, the source line is computed with
`BlockInlineCheck::UseHTMLDefaultStyle`.  However, the deletion handler works
with `BlockInlineCheck::UseComputedDisplayOutsideStyle`.  Therefore,
`AutoMoveOneLineHandler` may try to move different range.  In the reported
test case, it tries to move all content under the `<body>` into the
`<a display="table-header-group">` which is contained in the range.  Therefore,
the `movedContentRange` check fails after the destination becomes into an
orphan node which was removed to move.

This patch renames the API and adds a `BlockInlineCheck` parameter to work
with both ways and makes `AutoMoveOneLineHandler` specify
`BlockInlineCheck::UseComputedDisplayOutsideStyle` as same as the other delete
handlers.

Finally, same thing may happen in
`HTMLEditor::OnEndHandlingTopLevelEditSubActionInternal`.  This patch makes it
check whether the top-level edit sub-action is a block level one or not and
consider `BlockInlineCheck` with the result.

Depends on D194180

Differential Revision: https://phabricator.services.mozilla.com/D194181
2023-11-27 01:46:42 +00:00
..
composer Bug 1866011 p2. Rename nsIDocShell.contentViewer. r=emilio,credential-management-reviewers,devtools-reviewers,sgalich 2023-11-24 09:10:52 +00:00
docs Bug 1842986 - Remove dom.forms.inputmode pref r=emilio 2023-09-15 16:49:21 +00:00
libeditor Bug 1865729 - part 1: Make AutoMoveOneLineHandler make AutoRangeArray work with BlockInlineCheck::UseComputedDisplayOutsideStyle r=m_kato 2023-11-27 01:46:42 +00:00
reftests Bug 1850293 - Make editable states not intrinsic. r=smaug,masayuki 2023-08-30 09:18:31 +00:00
spellchecker Bug 1859245 - part 3: Make JoinNodesTransaction and SplitNodeTransaction handle only the new direction mode r=m_kato 2023-10-27 01:57:29 +00:00
txmgr Bug 1856795 - Remove redundant member init r=emilio 2023-10-15 15:29:02 +00:00
AsyncSpellCheckTestHelper.sys.mjs
moz.build
nsIDocumentStateListener.idl
nsIEditActionListener.idl Bug 1859245 - part 3: Make JoinNodesTransaction and SplitNodeTransaction handle only the new direction mode r=m_kato 2023-10-27 01:57:29 +00:00
nsIEditor.idl Bug 1839553 - Move EditorBase::IsInPlaintextMode() to HTMLEditor with renaming to IsPlaintextMailComposer() r=m_kato 2023-06-28 01:01:12 +00:00
nsIEditorMailSupport.idl Bug 1839814 - Move nsIEditor.wrapWidth to nsIEditorMailSupport r=m_kato 2023-06-27 05:47:55 +00:00
nsIEditorSpellCheck.idl
nsIHTMLAbsPosEditor.idl
nsIHTMLEditor.idl Bug 1851951 - Make HTMLEditor refer computed display instead of the HTML default style at considering block or inline element r=m_kato 2023-09-27 03:01:26 +00:00
nsIHTMLInlineTableEditor.idl
nsIHTMLObjectResizer.idl
nsITableEditor.idl