Open
Bug 1815626
Opened 2 years ago
Create `DeleteConsectiveNodesTransaction`
Categories
(Core :: DOM: Editor, enhancement)
Core
DOM: Editor
Tracking
()
NEW
People
(Reporter: masayuki, Unassigned)
References
(Blocks 1 open bug)
Details
DeleteRangeTransaction
usually deletes siblings.
https://searchfox.org/mozilla-central/rev/08362489086b10de96e7a199b267ea5504c01583/editor/libeditor/DeleteRangeTransaction.cpp#367-369,384-385,387
And there are some loops calling DeleteNodeWithTransaction
to delete siblings:
- https://searchfox.org/mozilla-central/rev/08362489086b10de96e7a199b267ea5504c01583/editor/libeditor/HTMLEditor.cpp#1624-1630
- https://searchfox.org/mozilla-central/rev/08362489086b10de96e7a199b267ea5504c01583/editor/libeditor/HTMLTableEditor.cpp#3389,3394
- https://searchfox.org/mozilla-central/rev/08362489086b10de96e7a199b267ea5504c01583/editor/libeditor/HTMLEditor.cpp#6227,6229
- https://searchfox.org/mozilla-central/rev/08362489086b10de96e7a199b267ea5504c01583/editor/libeditor/HTMLEditor.cpp#3674-3675
Therefore, they can be managed with one transaction instance with one position.
You need to log in
before you can comment on or make changes to this bug.
Description
•