Bug 1663822 Part 6 - Convert the anonymous enum controlling ReflowInput's behavior into an EnumSet. r=dholbert

This change shouldn't change behavior.

Differential Revision: https://phabricator.services.mozilla.com/D89545
This commit is contained in:
Ting-Yu Lin
2020-09-11 17:59:21 +00:00
parent 1d0686174b
commit 9ef3f5d242
15 changed files with 71 additions and 64 deletions

View File

@@ -279,7 +279,7 @@ void nsTableWrapperFrame::GetChildMargin(nsPresContext* aPresContext,
WritingMode wm = aOuterRI.GetWritingMode();
LogicalSize availSize(wm, aAvailISize, aOuterRI.AvailableSize(wm).BSize(wm));
ReflowInput childRI(aPresContext, aOuterRI, aChildFrame, availSize, Nothing(),
ReflowInput::CALLER_WILL_INIT);
ReflowInput::InitFlag::CallerWillInit);
InitChildReflowInput(*aPresContext, aOuterRI, childRI);
aMargin = childRI.ComputedLogicalMargin();
@@ -741,7 +741,7 @@ void nsTableWrapperFrame::OuterBeginReflowChild(nsPresContext* aPresContext,
// create and init the child reflow input, using passed-in Maybe<>,
// so that caller can use it after we return.
aChildRI.emplace(aPresContext, aOuterRI, aChildFrame, availSize, Nothing(),
ReflowInput::CALLER_WILL_INIT);
ReflowInput::InitFlag::CallerWillInit);
InitChildReflowInput(*aPresContext, aOuterRI, *aChildRI);
// see if we need to reset top-of-page due to a caption