Closed Bug 1756933 Opened 2 years ago Closed 2 years ago

Clean up `JoinNodeTransaction`

Categories

(Core :: DOM: Editor, task, P3)

task

Tracking

()

RESOLVED FIXED
99 Branch
Tracking Status
firefox99 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(3 files)

No description provided.

For consistency with the other things in editor module, it should be "nodes"
rather than "node" since 2 nodes are joined by it.

This patch renames members and variables in it not to use "left" and "right"
words to preparing to support both direction joining. So this patch does not
change any behavior.

Depends on D139715

This push some post processing of joining nodes into JoinNodesTransaction and
HTMLEditor::DidJoinNodes() to make HTMLEditor::JoinNodesTransaction()
simpler and the new method does not use the "left"/"right" words at post
processing.

This changes the logic a bit so that it may change some behavior if web apps
uses some legacy mutation events, but it must be rare case because the other
browsers don't fire them synchronously.

Depends on D139716

Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/7716ef075e84
part 1: Rename `JoinNodeTransaction` to `JoinNodesTransaction` r=m_kato
https://hg.mozilla.org/integration/autoland/rev/2c26f3ae2371
part 2: Clean up `JoinNodesTransaction` members and variables r=m_kato
Pushed by masayuki@d-toybox.com:
https://hg.mozilla.org/integration/autoland/rev/9a66f5ae4e02
part 3: Clean up `HTMLEditor::JoinNodesWithTransaction()` r=m_kato
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 99 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: