Closed Bug 1686310 Opened 4 years ago Closed 4 years ago

Remove ReflowInput::mFrameType

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: MatsPalmgren_bugz, Assigned: MatsPalmgren_bugz)

References

Details

Attachments

(7 files)

ReflowInput::mFrameType is initialized using a few different sources: the frame's class, its display style value, and some of its IsFrameOfType() bits. This makes it hard to reason about code that uses it. Arguably, it's also setup wrong in some cases and one value (NS_CSS_FRAME_TYPE_FLOATING) isn't used at all.

Fortunately, it's not used very much so it's easy to surface the underlying conditions directly where they are used.

Depends on D101550

Depends on D101551

Depends on D101552

Depends on D101553

Pushed by mpalmgren@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7c5254bea75a
part 1 - Remove NS_CSS_FRAME_TYPE_FLOATING. r=emilio
https://hg.mozilla.org/integration/autoland/rev/d29ddd193684
part 2 - Replace NS_FRAME_IS_REPLACED* with a bit that caches the corresponding IsFrameOfType result. r=emilio
https://hg.mozilla.org/integration/autoland/rev/ad097b5793e8
part 3 - Replace NS_CSS_FRAME_TYPE_INTERNAL_TABLE with checks of the actual frame class, which is more correct. r=emilio
https://hg.mozilla.org/integration/autoland/rev/5fb94fe99844
part 4 - Remove NS_CSS_FRAME_TYPE_ABSOLUTE. r=emilio
https://hg.mozilla.org/integration/autoland/rev/b06ec5eca611
part 5 - Remove NS_CSS_FRAME_TYPE_BLOCK. r=emilio
https://hg.mozilla.org/integration/autoland/rev/c4e1adb07c92
part 6 - Remove NS_CSS_FRAME_TYPE_INLINE. r=emilio
https://hg.mozilla.org/integration/autoland/rev/429a4d022ade
part 7 - Remove ReflowInput::mFrameType and associated code, which is now dead code. r=emilio
Regressions: 1699605
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: