forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1739315 - part 1: Make
HTMLEditor::JoinNodesWithTransaction()
d…
…irectly notify `TopLevelEditSubActionData::DidJoinNodes()` of joined position r=m_kato `TopLevelEditSubActionData::WillJoinNodes()` and `TopLevelEditSubActionData::DidJoinNodes()` are called only by `HTMLEditor::JoinNodesWithTransaction()`. `WillJoinNodes()` assumes that all children or text data in `aLeftContent` is moved to head of `aRightContent`. Therefore, it just stores length of `aLeftContent` and `DidJoinNodes()` lets `AddPointToChangedRange()` know the joined point. Same value is stored by `HTMLEditor::JoinNodesWithTransaction()`. Therefore, it can create same DOM point at calling `DidJoinNodes()` so that we can get rid of `WillJoinNodes()`. Differential Revision: https://phabricator.services.mozilla.com/D130348
- Loading branch information
1 parent
f914460
commit 4dd2a40
Showing
3 changed files
with
9 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters