mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-23 04:43:07 +09:00
Issue #1916 - Part 1: Convert flags passed to ReflowChild, FinishReflowChild, etc into an enum class.
Backported from Mozilla bug 1571250.
This commit is contained in:
parent
9cc1870b9f
commit
0423d83560
51 changed files with 365 additions and 303 deletions
|
|
@ -1856,7 +1856,7 @@ nsFlexContainerFrame::MeasureAscentAndHeightForFlexItem(
|
|||
ReflowOutput childDesiredSize(aChildReflowInput);
|
||||
nsReflowStatus childReflowStatus;
|
||||
|
||||
const uint32_t flags = NS_FRAME_NO_MOVE_FRAME;
|
||||
const ReflowChildFlags flags = ReflowChildFlags::NoMoveFrame;
|
||||
ReflowChild(aItem.Frame(), aPresContext,
|
||||
childDesiredSize, aChildReflowInput,
|
||||
0, 0, flags, childReflowStatus);
|
||||
|
|
@ -4856,7 +4856,8 @@ nsFlexContainerFrame::ReflowFlexItem(nsPresContext* aPresContext,
|
|||
ReflowChild(aItem.Frame(), aPresContext,
|
||||
childDesiredSize, childReflowInput,
|
||||
outerWM, aFramePos, aContainerSize,
|
||||
0, childReflowStatus);
|
||||
ReflowChildFlags::Default,
|
||||
childReflowStatus);
|
||||
|
||||
// XXXdholbert Once we do pagination / splitting, we'll need to actually
|
||||
// handle incomplete childReflowStatuses. But for now, we give our kids
|
||||
|
|
@ -4872,9 +4873,9 @@ nsFlexContainerFrame::ReflowFlexItem(nsPresContext* aPresContext,
|
|||
offsets, &aFramePos,
|
||||
aContainerSize);
|
||||
|
||||
FinishReflowChild(aItem.Frame(), aPresContext,
|
||||
childDesiredSize, &childReflowInput,
|
||||
outerWM, aFramePos, aContainerSize, 0);
|
||||
FinishReflowChild(aItem.Frame(), aPresContext, childDesiredSize,
|
||||
&childReflowInput, outerWM, aFramePos, aContainerSize,
|
||||
ReflowChildFlags::Default);
|
||||
|
||||
aItem.SetAscent(childDesiredSize.BlockStartAscent());
|
||||
}
|
||||
|
|
@ -4899,14 +4900,13 @@ nsFlexContainerFrame::ReflowPlaceholders(nsPresContext* aPresContext,
|
|||
placeholder, availSize);
|
||||
ReflowOutput childDesiredSize(childReflowInput);
|
||||
nsReflowStatus childReflowStatus;
|
||||
ReflowChild(placeholder, aPresContext,
|
||||
childDesiredSize, childReflowInput,
|
||||
outerWM, aContentBoxOrigin, aContainerSize, 0,
|
||||
childReflowStatus);
|
||||
ReflowChild(placeholder, aPresContext, childDesiredSize, childReflowInput,
|
||||
outerWM, aContentBoxOrigin, aContainerSize,
|
||||
ReflowChildFlags::Default, childReflowStatus);
|
||||
|
||||
FinishReflowChild(placeholder, aPresContext,
|
||||
childDesiredSize, &childReflowInput,
|
||||
outerWM, aContentBoxOrigin, aContainerSize, 0);
|
||||
FinishReflowChild(placeholder, aPresContext, childDesiredSize,
|
||||
&childReflowInput, outerWM, aContentBoxOrigin,
|
||||
aContainerSize, ReflowChildFlags::Default);
|
||||
|
||||
// Mark the placeholder frame to indicate that it's not actually at the
|
||||
// element's static position, because we need to apply CSS Alignment after
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue