summaryrefslogtreecommitdiff
path: root/layout/generic/nsSimplePageSequenceFrame.cpp
diff options
context:
space:
mode:
authorJob Bautista <jobbautista9@protonmail.com>2022-06-17 16:05:57 +0800
committerJob Bautista <jobbautista9@protonmail.com>2022-06-17 16:05:57 +0800
commitb3cacb2c3ac849f70a2746b252fe0874ffe41e33 (patch)
treec3c1d0fa9665c5050b958d1c3dc3b4c60abd970e /layout/generic/nsSimplePageSequenceFrame.cpp
parent5652238ba898931d9705c9df37259284bb76619e (diff)
downloaduxp-b3cacb2c3ac849f70a2746b252fe0874ffe41e33.tar.gz
Issue #1916 - Part 1: Convert flags passed to ReflowChild, FinishReflowChild, etc into an enum class.
Backported from Mozilla bug 1571250.
Diffstat (limited to 'layout/generic/nsSimplePageSequenceFrame.cpp')
-rw-r--r--layout/generic/nsSimplePageSequenceFrame.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/layout/generic/nsSimplePageSequenceFrame.cpp b/layout/generic/nsSimplePageSequenceFrame.cpp
index d8ec898a6a..444512fba6 100644
--- a/layout/generic/nsSimplePageSequenceFrame.cpp
+++ b/layout/generic/nsSimplePageSequenceFrame.cpp
@@ -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;