Closed Bug 2014344 Opened 7 months ago Closed 2 months ago

`nsINode::IsSelected()` and `IsItemInRangeComparetor` should use `nsContentUtils::ComparePoints` and convert the points to the flattened tree if comparing within the flattened tree

Categories

(Core :: DOM: Core & HTML, defect)

defect

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox154 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

(Regressed 1 open bug)

Details

Attachments

(1 file)

No description provided.

I'd like to hide nsContentUtils::ComparePointsWithIndices() because
it does not have information whether the offset is in TreeKind::DOM
or TreeKind::FlatForSelection.

This makes them convert the range boundaries to the corresponding
boundaries in the comparing tree.

Pushed by masayuki@d-toybox.com: https://github.com/mozilla-firefox/firefox/commit/3ee3e6da160a https://hg.mozilla.org/integration/autoland/rev/7cfa190abe2f Make `nsINode::IsSelected()` and `IsItemInRangeComparator` stop using `nsContentUtils::ComparePointsWithIndices()` r=jjaschke,dom-core
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 150 Branch
Pushed by nfay@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/c8c31f023b12 https://hg.mozilla.org/mozilla-central/rev/a3cb591e504c Revert "Bug 2014344 - Make `nsINode::IsSelected()` and `IsItemInRangeComparator` stop using `nsContentUtils::ComparePointsWithIndices()` r=jjaschke,dom-core"
Status: RESOLVED → REOPENED
Flags: needinfo?(masayuki)
Resolution: FIXED → ---
Target Milestone: 150 Branch → ---
Pushed by masayuki@d-toybox.com: https://github.com/mozilla-firefox/firefox/commit/943d10011843 https://hg.mozilla.org/integration/autoland/rev/b33026b9779e Make `nsINode::IsSelected()` and `IsItemInRangeComparator` stop using `nsContentUtils::ComparePointsWithIndices()` r=jjaschke,dom-core-reviewers
Status: REOPENED → RESOLVED
Closed: 6 months ago2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
Pushed by ctuns@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/68ce4a56be07 https://hg.mozilla.org/mozilla-central/rev/03269cd4884a Revert "Bug 2014344 - Make `nsINode::IsSelected()` and `IsItemInRangeComparator` stop using `nsContentUtils::ComparePointsWithIndices()` r=jjaschke,dom-core-reviewers"

Backed out for causing Bug 2052026

Status: RESOLVED → REOPENED
Flags: needinfo?(masayuki)
Resolution: FIXED → ---
Target Milestone: 154 Branch → ---
Status: REOPENED → ASSIGNED
Flags: needinfo?(masayuki)
Pushed by masayuki@d-toybox.com: https://github.com/mozilla-firefox/firefox/commit/e16f99c4eb2c https://hg.mozilla.org/integration/autoland/rev/bacbdff11ccb Make `nsINode::IsSelected()` and `IsItemInRangeComparator` stop using `nsContentUtils::ComparePointsWithIndices()` r=jjaschke,dom-core-reviewers
Status: ASSIGNED → RESOLVED
Closed: 2 months ago2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
QA Whiteboard: [qa-triage-done-c155/b154]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: