Closed Bug 1926483 Opened 1 year ago Closed 1 year ago

Make `WSRunScanner` free from editing host

Categories

(Core :: DOM: Editor, task)

task

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

(Depends on 1 open bug, Blocks 3 open bugs)

Details

Attachments

(5 files)

Currently, WSRunScanner needs to take an editing host as a required parameter and it may stop scanning if it reaches non-editable content. However, the user needs to scan outside the editing host. For example, when we need to check whether we need to put a <br> at end of inline editing host, we need to check whether the inline editing host is immediately before a block boundary.

If it scans starting from a editable point, it does not require the editing
host as an ancestor limiter. Therefore, some users can be free from editing
host.

Depends on D232937

Assignee: nobody → masayuki
Status: NEW → ASSIGNED

Note that this removes a lot of aEditingHost params. This may cause odd
behavior if editing host is changed by a legacy mutation event listener.
However, it'll be completely deleted soon and even if we meet some regressions,
we can just restore the param to set aAncestorLimiter.

Depends on D233793

Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/41b040b374a2 part 1: Make `WSRunScanner` instance free from editing host r=m_kato https://hg.mozilla.org/integration/autoland/rev/7aceecb585e4 part 2: Make `WSRunScanner::Get(InclusiveNext|Previous)CharPoint` free from editing host r=m_kato https://hg.mozilla.org/integration/autoland/rev/1df51ca968f8 part 3: Make various `WSRunScanner` static methods take `WSRunScanner::Scan` and ancestor limiter r=m_kato https://hg.mozilla.org/integration/autoland/rev/24bdcd7af3e0 part 4: Make `WSRunScanner::Scan(InclusiveNext|Previous)VisibleNodeOrBlockBoundary` take `WSRunScanner::Scan` and ancestor limiter r=m_kato https://hg.mozilla.org/integration/autoland/rev/fa4c36cef1c5 part 5: Fix some assertion failures which assume `WSRunScanner` works only with editable nodes r=m_kato
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/4fcf1ac4f4f5 part 1: Make `WSRunScanner` instance free from editing host r=m_kato https://hg.mozilla.org/integration/autoland/rev/07221ff52d54 part 2: Make `WSRunScanner::Get(InclusiveNext|Previous)CharPoint` free from editing host r=m_kato https://hg.mozilla.org/integration/autoland/rev/21d25ec4ae50 part 3: Make various `WSRunScanner` static methods take `WSRunScanner::Scan` and ancestor limiter r=m_kato https://hg.mozilla.org/integration/autoland/rev/c28a76805cb6 part 4: Make `WSRunScanner::Scan(InclusiveNext|Previous)VisibleNodeOrBlockBoundary` take `WSRunScanner::Scan` and ancestor limiter r=m_kato https://hg.mozilla.org/integration/autoland/rev/ed2f02b40979 part 5: Fix some assertion failures which assume `WSRunScanner` works only with editable nodes r=m_kato
Flags: needinfo?(masayuki)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: