Closed Bug 1964120 Opened 1 year ago Closed 1 year ago

Remove redundant `aConstrainBSize` flag in `FinishReflowWithAbsoluteFrames` and `ReflowAbsoluteFrames`

Categories

(Core :: Layout: Positioned, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: dshin, Assigned: dshin)

References

Details

Attachments

(1 file, 1 obsolete file)

By definition, when anchor positioned abspos element is being reflowed, its abspos containing block's rect is not set - For example, here the abspos reflow happens for the abspos containing block and then its size is saved later on at an upper level.

To figure out the offset of the anchor from any axis, we need this value.

We could SetRect() on entrance to/exit from nsAbsoluteContainingBlock::Reflow, but that could have other implications

Note, FinishAndStoreOverflow already does something similar

Component: CSS Parsing and Computation → Layout: Positioned
See Also: → 1964229
Attachment #9486060 - Attachment is obsolete: true

Abandoning this approach, changing the ticket to center on landing D248268

Summary: Investigate a way for anchor positioning to work with abs-containing block rect not being set when reflowing for abspos elements → Remove redundant `aConstrainBSize` flag in `FinishReflowWithAbsoluteFrames` and `ReflowAbsoluteFrames`
No longer blocks: 1923764
Pushed by dshin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e87691492f92 Remove unneeded aConstrainBSize flag in FinishReflowWithAbsoluteFrames and ReflowAbsoluteFrames. r=layout-reviewers,emilio
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
QA Whiteboard: [qa-triage-done-c141/b140]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: