mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-26 14:54:25 +00: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:
@@ -822,7 +822,7 @@ nsTableWrapperFrame::OuterDoReflowChild(nsPresContext* aPresContext,
|
||||
|
||||
// Use the current position as a best guess for placement.
|
||||
LogicalPoint childPt = aChildFrame->GetLogicalPosition(wm, zeroCSize);
|
||||
uint32_t flags = NS_FRAME_NO_MOVE_FRAME;
|
||||
ReflowChildFlags flags = ReflowChildFlags::NoMoveFrame;
|
||||
|
||||
// We don't want to delete our next-in-flow's child if it's an inner table
|
||||
// frame, because table wrapper frames always assume that their inner table
|
||||
@@ -830,7 +830,7 @@ nsTableWrapperFrame::OuterDoReflowChild(nsPresContext* aPresContext,
|
||||
// a next-in-flow of an already complete table wrapper frame, then it will
|
||||
// take care of removing it's inner table frame.
|
||||
if (aChildFrame == InnerTableFrame()) {
|
||||
flags |= NS_FRAME_NO_DELETE_NEXT_IN_FLOW_CHILD;
|
||||
flags |= ReflowChildFlags::NoDeleteNextInFlowChild;
|
||||
}
|
||||
|
||||
ReflowChild(aChildFrame, aPresContext, aMetrics, aChildRI,
|
||||
@@ -1024,7 +1024,8 @@ nsTableWrapperFrame::Reflow(nsPresContext* aPresContext,
|
||||
GetCaptionOrigin(captionSide, containSize, innerSize, innerMargin,
|
||||
captionSize, captionMargin, captionOrigin, wm);
|
||||
FinishReflowChild(mCaptionFrames.FirstChild(), aPresContext, *captionMet,
|
||||
captionRI.ptr(), wm, captionOrigin, containerSize, 0);
|
||||
captionRI.ptr(), wm, captionOrigin, containerSize,
|
||||
ReflowChildFlags::Default);
|
||||
captionRI.reset();
|
||||
}
|
||||
// XXX If the bsize is constrained then we need to check whether
|
||||
@@ -1034,7 +1035,7 @@ nsTableWrapperFrame::Reflow(nsPresContext* aPresContext,
|
||||
GetInnerOrigin(captionSide, containSize, captionSize, captionMargin,
|
||||
innerSize, innerMargin, innerOrigin, wm);
|
||||
FinishReflowChild(InnerTableFrame(), aPresContext, innerMet, innerRI.ptr(),
|
||||
wm, innerOrigin, containerSize, 0);
|
||||
wm, innerOrigin, containerSize, ReflowChildFlags::Default);
|
||||
innerRI.reset();
|
||||
|
||||
nsTableFrame::InvalidateTableFrame(InnerTableFrame(), origInnerRect,
|
||||
@@ -1051,8 +1052,8 @@ nsTableWrapperFrame::Reflow(nsPresContext* aPresContext,
|
||||
|
||||
if (GetPrevInFlow()) {
|
||||
ReflowOverflowContainerChildren(aPresContext, aOuterRI,
|
||||
aDesiredSize.mOverflowAreas, 0,
|
||||
aStatus);
|
||||
aDesiredSize.mOverflowAreas,
|
||||
ReflowChildFlags::Default, aStatus);
|
||||
}
|
||||
|
||||
FinishReflowWithAbsoluteFrames(aPresContext, aDesiredSize, aOuterRI, aStatus);
|
||||
|
||||
Reference in New Issue
Block a user