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/nsPageFrame.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/nsPageFrame.cpp')
-rw-r--r-- | layout/generic/nsPageFrame.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/layout/generic/nsPageFrame.cpp b/layout/generic/nsPageFrame.cpp index 31a686e83e..6120e35103 100644 --- a/layout/generic/nsPageFrame.cpp +++ b/layout/generic/nsPageFrame.cpp @@ -141,13 +141,15 @@ nsPageFrame::Reflow(nsPresContext* aPresContext, nscoord yc = mPageContentMargin.top; // Get the child's desired size - ReflowChild(frame, aPresContext, aDesiredSize, kidReflowInput, xc, yc, 0, aStatus); + ReflowChild(frame, aPresContext, aDesiredSize, kidReflowInput, xc, yc, + ReflowChildFlags::Default, aStatus); // Place and size the child - FinishReflowChild(frame, aPresContext, aDesiredSize, &kidReflowInput, xc, yc, 0); + FinishReflowChild(frame, aPresContext, aDesiredSize, &kidReflowInput, xc, + yc, ReflowChildFlags::Default); - NS_ASSERTION(!NS_FRAME_IS_FULLY_COMPLETE(aStatus) || - !frame->GetNextInFlow(), "bad child flow list"); + NS_ASSERTION(!aStatus.IsFullyComplete() || !frame->GetNextInFlow(), + "bad child flow list"); } PR_PL(("PageFrame::Reflow %p ", this)); PR_PL(("[%d,%d][%d,%d]\n", aDesiredSize.Width(), aDesiredSize.Height(), |