Split `HTMLEditor::HandleDeleteCollapsedSelectionAtOtherBlockBoundary()` to range computation part and modifying DOM tree part
Categories
(Core :: DOM: Editor, task, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox81 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(3 files)
Assignee | ||
Comment 1•4 years ago
|
||
Same as the patch for bug 1655391, this patch splits the method to 2 parts.
One is to consider content nodes to join or a <br>
element to delete instead.
Note that this patch changes the behavior a little. That is, when the other
block is not editable, it throws an exception here:
https://searchfox.org/mozilla-central/rev/56bb74ea8e04bdac57c33cbe9b54d889b9262ade/editor/libeditor/HTMLEditSubActionHandler.cpp#3124
But it should just cancel the edit action. Therefore, some tests in
BrowserScope are fixed by this patch. I.e., result of DOM tree in the
situation isn't changed, but stops throwing unnecessary exception.
Depends on D85567
Assignee | ||
Comment 2•4 years ago
|
||
The recursive call is not safe. We should do it more carefully. For now,
we should not hide the recursive call into the leaf handler.
Depends on D85569
Assignee | ||
Comment 3•4 years ago
|
||
Depends on D85573
Comment 5•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4e9b12c286f4
https://hg.mozilla.org/mozilla-central/rev/1e439a68f0e4
https://hg.mozilla.org/mozilla-central/rev/de60b2f1987f
Assignee | ||
Updated•4 years ago
|
Description
•