mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-30 11:18:39 +09:00
Issue #1916 - Part 1: Convert flags passed to ReflowChild, FinishReflowChild, etc into an enum class.
Backported from Mozilla bug 1571250.
This commit is contained in:
parent
9cc1870b9f
commit
0423d83560
51 changed files with 365 additions and 303 deletions
|
|
@ -636,12 +636,12 @@ nsCanvasFrame::Reflow(nsPresContext* aPresContext,
|
|||
kidReflowInput.ApplyRelativePositioning(&kidPt, containerSize);
|
||||
|
||||
// Reflow the frame
|
||||
ReflowChild(kidFrame, aPresContext, kidDesiredSize, kidReflowInput,
|
||||
kidWM, kidPt, containerSize, 0, aStatus);
|
||||
ReflowChild(kidFrame, aPresContext, kidDesiredSize, kidReflowInput, kidWM,
|
||||
kidPt, containerSize, ReflowChildFlags::Default, aStatus);
|
||||
|
||||
// Complete the reflow and position and size the child frame
|
||||
FinishReflowChild(kidFrame, aPresContext, kidDesiredSize, &kidReflowInput,
|
||||
kidWM, kidPt, containerSize, 0);
|
||||
kidWM, kidPt, containerSize, ReflowChildFlags::Default);
|
||||
|
||||
if (!NS_FRAME_IS_FULLY_COMPLETE(aStatus)) {
|
||||
nsIFrame* nextFrame = kidFrame->GetNextInFlow();
|
||||
|
|
@ -696,8 +696,8 @@ nsCanvasFrame::Reflow(nsPresContext* aPresContext,
|
|||
|
||||
if (prevCanvasFrame) {
|
||||
ReflowOverflowContainerChildren(aPresContext, aReflowInput,
|
||||
aDesiredSize.mOverflowAreas, 0,
|
||||
aStatus);
|
||||
aDesiredSize.mOverflowAreas,
|
||||
ReflowChildFlags::Default, aStatus);
|
||||
}
|
||||
|
||||
FinishReflowWithAbsoluteFrames(aPresContext, aDesiredSize, aReflowInput, aStatus);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue