Closed
Bug 1790312
Opened 2 years ago
Closed 2 years ago
Clean up in nsFlexContainerFrame::ReflowChildren()
Categories
(Core :: Layout: Flexbox, task)
Core
Layout: Flexbox
Tracking
()
RESOLVED
FIXED
106 Branch
Tracking | Status | |
---|---|---|
firefox106 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
Details
Attachments
(2 files)
See patches for details.
Assignee | ||
Comment 1•2 years ago
|
||
aFramePos
is never modified in ReflowFlexItem().
Updated•2 years ago
|
Assignee: nobody → aethanyc
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•2 years ago
|
||
ReflowChildren() only cares about the flex item's normal position, so we don't
need to output the relative position from MoveFlexItemToFinalPosition()
.
By making aFramePos
const for MoveFlexItemToFinalPosition
, we can delete
itemNormalBPos
because framePos
cannot be changed after calling
MoveFlexItemToFinalPosition
.
This patch shouldn't change the behavior.
Depends on D157078
Pushed by aethanyc@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/8dc9c643baed
Part 1 - Make aFramePos parameter const for ReflowFlexItem(). r=dholbert
https://hg.mozilla.org/integration/autoland/rev/7e46c0198984
Part 2 - Remove flex item's normal position snapshot in ReflowChildren(). r=dholbert
Comment 4•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8dc9c643baed
https://hg.mozilla.org/mozilla-central/rev/7e46c0198984
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox106:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•