Use ReflowChildFlags::ApplyRelativePositioning flag in ReflowFlexItem
Categories
(Core :: Layout: Flexbox, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox76 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
Details
Attachments
(1 file)
This is a followup to bug 1547759 to remove the conversion before calling FinishReflowChild()
in nsFlexContainerFrame::ReflowFlexItem
. Instead we should use ReflowChildFlags::ApplyRelativePositioning
flag.
Assignee | ||
Comment 1•5 years ago
|
||
Currently, when using ReflowChildFlags::ApplyRelativePositioning flag in
FinishReflowChild(), we (implicitly) force the callers to pass aWM and
aPos in the same writing-mode as the reflow input, i.e. the child's
writing-mode. This results in an unintuitive LogicalPoint conversion
mContainerSize - mMetrics.PhysicalSize()
in
nsBlockReflowContext::PlaceBlock().
We should allow the callers to use their preferred aWM and aPos (either
in parent's wm or child's wm), and doing the necessary conversion in
FinishReflowChild() (like we did to convert aDesiredSize from
ReflowOutput's wm to aWM).
Also, correct the documentation for aWM in ReflowChild() and
FinishReflowChild(). aWM doesn't need to be the containing frame's
writing-mode. It can be any as long as it is the writing-mode that aPos
is used.
Updated•5 years ago
|
Comment 3•5 years ago
|
||
bugherder |
Description
•