mirror of
https://github.com/roytam1/UXP.git
synced 2026-07-20 22:18:32 +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:
@@ -255,13 +255,15 @@ nsSimplePageSequenceFrame::Reflow(nsPresContext* aPresContext,
|
||||
nscoord x = pageCSSMargin.left;
|
||||
|
||||
// Place and size the page.
|
||||
ReflowChild(kidFrame, aPresContext, kidSize, kidReflowInput, x, y, 0, status);
|
||||
ReflowChild(kidFrame, aPresContext, kidSize, kidReflowInput, x, y,
|
||||
ReflowChildFlags::Default, status);
|
||||
|
||||
// If the page is narrower than our width, then center it horizontally:
|
||||
x += ComputeCenteringMargin(aReflowInput.ComputedWidth(),
|
||||
kidSize.Width(), pageCSSMargin);
|
||||
|
||||
FinishReflowChild(kidFrame, aPresContext, kidSize, nullptr, x, y, 0);
|
||||
FinishReflowChild(kidFrame, aPresContext, kidSize, nullptr, x, y,
|
||||
ReflowChildFlags::Default);
|
||||
y += kidSize.Height();
|
||||
y += pageCSSMargin.bottom;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user