Minor clean up for flex container
Categories
(Core :: Layout: Flexbox, task)
Tracking
()
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.
Assignee | ||
Comment 1•2 years ago
|
||
This separation makes hacking fragmentation code easier, and readers who are not
interested in flex container fragmentation can skip it.
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Depends on D163545
Assignee | ||
Comment 3•2 years ago
|
||
Depends on D163546
Assignee | ||
Comment 4•2 years ago
|
||
The arguments are removed for the following reasons:
-
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. -
We can initialize mNeedsMinSizeAutoResolution directly in the member
initializer list.
Also, simplify its implementation and comments.
Depends on D163547
Comment 6•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a0dbe91979ec
https://hg.mozilla.org/mozilla-central/rev/04e34f384702
https://hg.mozilla.org/mozilla-central/rev/94d2dd381aaa
https://hg.mozilla.org/mozilla-central/rev/9370e929428b
Description
•