ported from UXP: Issue #1916 - Part 1: Convert flags passed to ReflowChild, FinishReflowChild, etc into an enum class. (0423d835)

This commit is contained in:
2022-06-22 09:38:56 +08:00
parent c8f029d273
commit 101db37cd8
51 changed files with 349 additions and 293 deletions
+4 -4
View File
@@ -580,12 +580,12 @@ nsTextControlFrame::ReflowTextControlChild(nsIFrame* aKid,
// reflow the child
ReflowOutput desiredSize(aReflowInput);
ReflowChild(aKid, aPresContext, desiredSize, kidReflowInput,
xOffset, yOffset, 0, aStatus);
ReflowChild(aKid, aPresContext, desiredSize, kidReflowInput, xOffset, yOffset,
ReflowChildFlags::Default, aStatus);
// place the child
FinishReflowChild(aKid, aPresContext, desiredSize,
&kidReflowInput, xOffset, yOffset, 0);
FinishReflowChild(aKid, aPresContext, desiredSize, &kidReflowInput, xOffset,
yOffset, ReflowChildFlags::Default);
// consider the overflow
aParentDesiredSize.mOverflowAreas.UnionWith(desiredSize.mOverflowAreas);