Closed Bug 1803486 Opened 2 years ago Closed 2 years ago

Minor clean up for flex container

Categories

(Core :: Layout: Flexbox, task)

task

Tracking

()

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

References

Details

Attachments

(4 files)

While investigating flex container fragmentation, I got some clean up / refactor patches accumulated, and would love them to be reviewed and landed.

This separation makes hacking fragmentation code easier, and readers who are not
interested in flex container fragmentation can skip it.

Assignee: nobody → aethanyc
Status: NEW → ASSIGNED

The arguments are removed for the following reasons:

  1. We might need to call it future patches when ReflowInput is not available.
    Although getting the cached style struct pointers from ReflowInput is cheaper,
    but getting them from the frame directly is not expensive nowadays.

  2. We can initialize mNeedsMinSizeAutoResolution directly in the member
    initializer list.

Also, simplify its implementation and comments.

Depends on D163547

Pushed by aethanyc@gmail.com: https://hg.mozilla.org/integration/autoland/rev/a0dbe91979ec Part 1 - Guard logic required only by fragmentation for flex container. r=dholbert https://hg.mozilla.org/integration/autoland/rev/04e34f384702 Part 2 - Move prevInFlow definition up in nsFlexContainerFrame::Reflow(). r=dholbert https://hg.mozilla.org/integration/autoland/rev/94d2dd381aaa Part 3 - Add SharedFlexData::Update(). r=dholbert https://hg.mozilla.org/integration/autoland/rev/9370e929428b Part 4 - Remove arguments for CheckForMinSizeAuto() and rename it. r=dholbert
Regressions: 1805522
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: