Closed Bug 1790312 Opened 2 years ago Closed 2 years ago

Clean up in nsFlexContainerFrame::ReflowChildren()

Categories

(Core :: Layout: Flexbox, task)

task

Tracking

()

RESOLVED FIXED
106 Branch
Tracking Status
firefox106 --- fixed

People

(Reporter: TYLin, Assigned: TYLin)

Details

Attachments

(2 files)

See patches for details.

aFramePos is never modified in ReflowFlexItem().

Assignee: nobody → aethanyc
Status: NEW → ASSIGNED

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
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 106 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: