Closed Bug 1619549 Opened 5 years ago Closed 5 years ago

Factor out code of maintained range in `nsFrameSelection`

Categories

(Core :: DOM: Selection, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: mbrodesser-Igalia, Assigned: mbrodesser-Igalia)

References

(Blocks 1 open bug)

Details

Attachments

(6 files)

Helps understanding and simplifying nsFrameSelection.

Helps reasoning about it.

Depends on D65106

Simplifies following simplifications.

Depends on D65117

Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/95670f2e4bea part 1) Group `mMaintainRange` and `mMaintainedAmount` in `MaintainedRange`. r=jfkthame https://hg.mozilla.org/integration/autoland/rev/03a15ae01488 part 2) Add assertion to `nsFrameSelection::HandleClick`. r=jfkthame https://hg.mozilla.org/integration/autoland/rev/000a4bc2ce3c part 3) Use `RefPtr` in `nsFrameSelection::HandleClick`. r=jfkthame https://hg.mozilla.org/integration/autoland/rev/9cc3314c3295 part 4) Move `nsFrameSelection::AdjustForMaintainedSelection` to `MaintainedRange`. r=jfkthame https://hg.mozilla.org/integration/autoland/rev/7432aa9dba41 part 5) Move core of `nsFrameSelection::MaintainSelection` to `MaintainedRange`. r=jfkthame https://hg.mozilla.org/integration/autoland/rev/7717e7ede13f part 6) Factor out code from `nsFrameSelection::HandleDrag` to `MaintainedRange::AdjustContentOffsets`. r=jfkthame
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: