summaryrefslogtreecommitdiff
path: root/layout/forms/nsDateTimeControlFrame.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/forms/nsDateTimeControlFrame.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/forms/nsDateTimeControlFrame.cpp')
-rw-r--r--layout/forms/nsDateTimeControlFrame.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/layout/forms/nsDateTimeControlFrame.cpp b/layout/forms/nsDateTimeControlFrame.cpp
index fa22dcebac..145a2d4724 100644
--- a/layout/forms/nsDateTimeControlFrame.cpp
+++ b/layout/forms/nsDateTimeControlFrame.cpp
@@ -233,8 +233,8 @@ nsDateTimeControlFrame::Reflow(nsPresContext* aPresContext,
// will be fixed later.
const nsSize dummyContainerSize;
ReflowChild(inputAreaFrame, aPresContext, childDesiredSize,
- childReflowOuput, myWM, childOffset, dummyContainerSize, 0,
- childStatus);
+ childReflowOuput, myWM, childOffset, dummyContainerSize,
+ ReflowChildFlags::Default, childStatus);
MOZ_ASSERT(NS_FRAME_IS_FULLY_COMPLETE(childStatus),
"We gave our child unconstrained available block-size, "
"so it should be complete");
@@ -271,7 +271,8 @@ nsDateTimeControlFrame::Reflow(nsPresContext* aPresContext,
// Place the child
FinishReflowChild(inputAreaFrame, aPresContext, childDesiredSize,
- &childReflowOuput, myWM, childOffset, borderBoxSize, 0);
+ &childReflowOuput, myWM, childOffset, borderBoxSize,
+ ReflowChildFlags::Default);
nsSize contentBoxSize =
LogicalSize(myWM, contentBoxISize, contentBoxBSize).