Extract computation of ComputedFlex{Container,Line,Item}Info into helper methods
Categories
(Core :: Layout: Flexbox, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox74 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
Details
Attachments
(5 files)
The motivation was to improve the readability by reducing the length of nsFlexContainerFrame::DoFlexLayout
, as preparation of further development for flex fragmentation.
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
The order of CreateFlexLineAndFlexItemInfo() and
ComputedFlexContainerInfo() doesn't matter. I call
CreateFlexLineAndFlexItemInfo because it matches the order of the
members in ComputedFlexContainerInfo.
Some comments "... filled out at the end of this function" should be
updated. However, since I'm in the process of refactor these
computations, I'll update them in Part 4.
Depends on D60047
Assignee | ||
Comment 3•5 years ago
|
||
Depends on D60048
Assignee | ||
Comment 4•5 years ago
|
||
Depends on D60049
Assignee | ||
Comment 5•5 years ago
|
||
Depends on D60050
Comment 7•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/32d6d980833c
https://hg.mozilla.org/mozilla-central/rev/69f7e72facd3
https://hg.mozilla.org/mozilla-central/rev/b7bc465a5159
https://hg.mozilla.org/mozilla-central/rev/3d62a68b0719
https://hg.mozilla.org/mozilla-central/rev/ade3351d02a6
Description
•