diff options
author | Job Bautista <jobbautista9@protonmail.com> | 2022-06-17 16:05:57 +0800 |
---|---|---|
committer | Job Bautista <jobbautista9@protonmail.com> | 2022-06-17 16:05:57 +0800 |
commit | b3cacb2c3ac849f70a2746b252fe0874ffe41e33 (patch) | |
tree | c3c1d0fa9665c5050b958d1c3dc3b4c60abd970e /layout/generic/nsSimplePageSequenceFrame.cpp | |
parent | 5652238ba898931d9705c9df37259284bb76619e (diff) | |
download | uxp-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.cpp | 6 |
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; |