Closed Bug 1637624 Opened 5 years ago Closed 5 years ago

Refactor nsIFrame::PeekOffset for readability

Categories

(Core :: Layout, task)

task

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: saschanaz, Assigned: saschanaz)

References

Details

Attachments

(7 files)

https://searchfox.org/mozilla-central/rev/0688ffdef223dac527c2fcdb25560118c4e4df51/layout/generic/nsFrame.cpp#8852-9207

Currently it has hundreds of lines in a single function, which makes it hard to understand.

Assignee: nobody → krosylight
Pushed by krosylight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e27a62f854b2 Part 1: Overload GetFrameFromDirection for nsPeekOffsetStruct r=emilio
Pushed by krosylight@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/014716df9d1f Part 2: Use StaticPrefs for layout.word_select.* r=emilio https://hg.mozilla.org/integration/autoland/rev/e254ee46b023 Part 3: Merge the description for mSawBeforeType r=emilio https://hg.mozilla.org/integration/autoland/rev/04538c55f37b Part 4: Merge offsetAdjustment into offset r=emilio https://hg.mozilla.org/integration/autoland/rev/905dd29d1b3f Part 5: Use MOZ_TRY r=emilio https://hg.mozilla.org/integration/autoland/rev/ab48b45d6a56 Part 6: Add SetOutputOffsetFromFrame() r=emilio https://hg.mozilla.org/integration/autoland/rev/af91f317d081 Part 7: Split PeekOffset switch entries to separate methods r=emilio
Regressions: 1652897
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: