Clean up FlexboxAxisTracker
Categories
(Core :: Layout: Flexbox, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox81 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
Details
Attachments
(6 files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
Some clean-up patches to make it easier to implement https://phabricator.services.mozilla.com/D86077
FlexboxAxisTracker::mMainAxis
will be removed in this bug per suggestion in https://phabricator.services.mozilla.com/D86077#2674628
Assignee | ||
Comment 1•5 years ago
|
||
It will be easier to change IsRowOriented()'s implementation later.
Assignee | ||
Comment 2•5 years ago
|
||
It will be easier to change IsMainAxisReversed()'s implementation later.
Depends on D86135
Assignee | ||
Comment 3•5 years ago
|
||
It will be easier to change IsCrossAxisReversed()'s implementation later.
Depends on D86136
Assignee | ||
Comment 4•5 years ago
|
||
We can compute MainAxis() and CrossAxis() by using IsRowOriented().
Depends on D86137
Assignee | ||
Comment 5•5 years ago
|
||
StyleFlexDirection() is a strong enum now. It cannot have other values.
Depends on D86138
Assignee | ||
Comment 6•5 years ago
|
||
We already pass nsFlexContainerFrame into FlexboxAxisTracker, so we can
get WritingMode from the frame.
Depends on D86139
Comment 8•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/371d980f67cb
https://hg.mozilla.org/mozilla-central/rev/fd4ec8bca53e
https://hg.mozilla.org/mozilla-central/rev/4a690a9ed98e
https://hg.mozilla.org/mozilla-central/rev/e30dd8dc3f51
https://hg.mozilla.org/mozilla-central/rev/9093bbbc3a6b
https://hg.mozilla.org/mozilla-central/rev/a0753879ef1f
Description
•