diff --git a/layout/forms/nsComboboxControlFrame.cpp b/layout/forms/nsComboboxControlFrame.cpp index 5daa0b1d586..0b4714ed602 100644 --- a/layout/forms/nsComboboxControlFrame.cpp +++ b/layout/forms/nsComboboxControlFrame.cpp @@ -446,8 +446,8 @@ nsComboboxControlFrame::ReflowDropdown(nsPresContext* aPresContext, ignoredStatus); // Set the child's width and height to its desired size - FinishReflowChild(mDropdownFrame, aPresContext, &kidReflowState, - desiredSize, rect.x, rect.y, flags); + FinishReflowChild(mDropdownFrame, aPresContext, desiredSize, + &kidReflowState, rect.x, rect.y, flags); return rv; } diff --git a/layout/forms/nsFieldSetFrame.cpp b/layout/forms/nsFieldSetFrame.cpp index eeb582ce0ac..a5c2bcf8eb4 100644 --- a/layout/forms/nsFieldSetFrame.cpp +++ b/layout/forms/nsFieldSetFrame.cpp @@ -512,8 +512,8 @@ nsFieldSetFrame::Reflow(nsPresContext* aPresContext, reflowInner = true; } - FinishReflowChild(legend, aPresContext, &legendReflowState.ref(), - legendDesiredSize, 0, 0, NS_FRAME_NO_MOVE_FRAME); + FinishReflowChild(legend, aPresContext, legendDesiredSize, + &legendReflowState.ref(), 0, 0, NS_FRAME_NO_MOVE_FRAME); } else if (!legend) { mLegendRect.SetEmpty(); mLegendSpace = 0; @@ -557,8 +557,8 @@ nsFieldSetFrame::Reflow(nsPresContext* aPresContext, ReflowChild(inner, aPresContext, kidDesiredSize, kidReflowState, pt.x, pt.y, 0, aStatus); - FinishReflowChild(inner, aPresContext, &kidReflowState, - kidDesiredSize, pt.x, pt.y, 0); + FinishReflowChild(inner, aPresContext, kidDesiredSize, + &kidReflowState, pt.x, pt.y, 0); NS_FRAME_TRACE_REFLOW_OUT("FieldSet::Reflow", aStatus); } diff --git a/layout/forms/nsHTMLButtonControlFrame.cpp b/layout/forms/nsHTMLButtonControlFrame.cpp index 5d84d4ca8f5..6e6ab4d2d27 100644 --- a/layout/forms/nsHTMLButtonControlFrame.cpp +++ b/layout/forms/nsHTMLButtonControlFrame.cpp @@ -329,7 +329,7 @@ nsHTMLButtonControlFrame::ReflowButtonContents(nsPresContext* aPresContext, // Place the child FinishReflowChild(aFirstKid, aPresContext, - &contentsReflowState, contentsDesiredSize, + contentsDesiredSize, &contentsReflowState, xoffset, yoffset, 0); // Make sure we have a useful 'ascent' value for the child diff --git a/layout/forms/nsMeterFrame.cpp b/layout/forms/nsMeterFrame.cpp index 4403acdddde..b7a3996fa60 100644 --- a/layout/forms/nsMeterFrame.cpp +++ b/layout/forms/nsMeterFrame.cpp @@ -182,7 +182,7 @@ nsMeterFrame::ReflowBarFrame(nsIFrame* aBarFrame, nsHTMLReflowMetrics barDesiredSize(reflowState.GetWritingMode()); ReflowChild(aBarFrame, aPresContext, barDesiredSize, reflowState, xoffset, yoffset, 0, aStatus); - FinishReflowChild(aBarFrame, aPresContext, &reflowState, barDesiredSize, + FinishReflowChild(aBarFrame, aPresContext, barDesiredSize, &reflowState, xoffset, yoffset, 0); } diff --git a/layout/forms/nsNumberControlFrame.cpp b/layout/forms/nsNumberControlFrame.cpp index d10b835450f..1624c8b7da8 100644 --- a/layout/forms/nsNumberControlFrame.cpp +++ b/layout/forms/nsNumberControlFrame.cpp @@ -150,7 +150,7 @@ nsNumberControlFrame:: MOZ_ASSERT(NS_FRAME_IS_FULLY_COMPLETE(childStatus), "We gave our child unconstrained height, so it should be complete"); return FinishReflowChild(aOuterWrapperFrame, aPresContext, - &wrapperReflowState, aWrappersDesiredSize, + aWrappersDesiredSize, &wrapperReflowState, xoffset, yoffset, 0); } diff --git a/layout/forms/nsProgressFrame.cpp b/layout/forms/nsProgressFrame.cpp index 3a89865e65c..74d04adb77d 100644 --- a/layout/forms/nsProgressFrame.cpp +++ b/layout/forms/nsProgressFrame.cpp @@ -196,7 +196,7 @@ nsProgressFrame::ReflowBarFrame(nsIFrame* aBarFrame, nsHTMLReflowMetrics barDesiredSize(aReflowState.GetWritingMode()); ReflowChild(aBarFrame, aPresContext, barDesiredSize, reflowState, xoffset, yoffset, 0, aStatus); - FinishReflowChild(aBarFrame, aPresContext, &reflowState, barDesiredSize, + FinishReflowChild(aBarFrame, aPresContext, barDesiredSize, &reflowState, xoffset, yoffset, 0); } diff --git a/layout/forms/nsRangeFrame.cpp b/layout/forms/nsRangeFrame.cpp index 5724e7a01cf..8b3327d44ee 100644 --- a/layout/forms/nsRangeFrame.cpp +++ b/layout/forms/nsRangeFrame.cpp @@ -356,8 +356,8 @@ nsRangeFrame::ReflowAnonymousContent(nsPresContext* aPresContext, NS_ENSURE_SUCCESS(rv, rv); MOZ_ASSERT(NS_FRAME_IS_FULLY_COMPLETE(frameStatus), "We gave our child unconstrained height, so it should be complete"); - rv = FinishReflowChild(trackFrame, aPresContext, &trackReflowState, - trackDesiredSize, trackX, trackY, 0); + rv = FinishReflowChild(trackFrame, aPresContext, trackDesiredSize, + &trackReflowState, trackX, trackY, 0); NS_ENSURE_SUCCESS(rv, rv); } @@ -378,8 +378,8 @@ nsRangeFrame::ReflowAnonymousContent(nsPresContext* aPresContext, NS_ENSURE_SUCCESS(rv, rv); MOZ_ASSERT(NS_FRAME_IS_FULLY_COMPLETE(frameStatus), "We gave our child unconstrained height, so it should be complete"); - rv = FinishReflowChild(thumbFrame, aPresContext, &thumbReflowState, - thumbDesiredSize, 0, 0, 0); + rv = FinishReflowChild(thumbFrame, aPresContext, thumbDesiredSize, + &thumbReflowState, 0, 0, 0); NS_ENSURE_SUCCESS(rv, rv); DoUpdateThumbPosition(thumbFrame, nsSize(aDesiredSize.Width(), @@ -407,7 +407,7 @@ nsRangeFrame::ReflowAnonymousContent(nsPresContext* aPresContext, MOZ_ASSERT(NS_FRAME_IS_FULLY_COMPLETE(frameStatus), "We gave our child unconstrained height, so it should be complete"); rv = FinishReflowChild(rangeProgressFrame, aPresContext, - &progressReflowState, progressDesiredSize, 0, 0, 0); + progressDesiredSize, &progressReflowState, 0, 0, 0); NS_ENSURE_SUCCESS(rv, rv); DoUpdateRangeProgressFrame(rangeProgressFrame, nsSize(aDesiredSize.Width(), diff --git a/layout/forms/nsTextControlFrame.cpp b/layout/forms/nsTextControlFrame.cpp index 8133f5c955a..04593493c88 100644 --- a/layout/forms/nsTextControlFrame.cpp +++ b/layout/forms/nsTextControlFrame.cpp @@ -549,8 +549,8 @@ nsTextControlFrame::ReflowTextControlChild(nsIFrame* aKid, xOffset, yOffset, 0, aStatus); // place the child - FinishReflowChild(aKid, aPresContext, &kidReflowState, - desiredSize, xOffset, yOffset, 0); + FinishReflowChild(aKid, aPresContext, desiredSize, + &kidReflowState, xOffset, yOffset, 0); // consider the overflow aParentDesiredSize.mOverflowAreas.UnionWith(desiredSize.mOverflowAreas); diff --git a/layout/generic/nsBlockReflowContext.cpp b/layout/generic/nsBlockReflowContext.cpp index a409e0eb145..195af85bfcd 100644 --- a/layout/generic/nsBlockReflowContext.cpp +++ b/layout/generic/nsBlockReflowContext.cpp @@ -392,8 +392,8 @@ nsBlockReflowContext::PlaceBlock(const nsHTMLReflowState& aReflowState, aReflowState.ApplyRelativePositioning(&position); // Now place the frame and complete the reflow process - nsContainerFrame::FinishReflowChild(mFrame, mPresContext, &aReflowState, - mMetrics, position.x, position.y, 0); + nsContainerFrame::FinishReflowChild(mFrame, mPresContext, mMetrics, + &aReflowState, position.x, position.y, 0); aOverflowAreas = mMetrics.mOverflowAreas + position; diff --git a/layout/generic/nsCanvasFrame.cpp b/layout/generic/nsCanvasFrame.cpp index b6a407257b6..edc7d9f1cc1 100644 --- a/layout/generic/nsCanvasFrame.cpp +++ b/layout/generic/nsCanvasFrame.cpp @@ -521,7 +521,7 @@ nsCanvasFrame::Reflow(nsPresContext* aPresContext, kidPt.x, kidPt.y, 0, aStatus); // Complete the reflow and position and size the child frame - FinishReflowChild(kidFrame, aPresContext, &kidReflowState, kidDesiredSize, + FinishReflowChild(kidFrame, aPresContext, kidDesiredSize, &kidReflowState, kidPt.x, kidPt.y, 0); if (!NS_FRAME_IS_FULLY_COMPLETE(aStatus)) { diff --git a/layout/generic/nsColumnSetFrame.cpp b/layout/generic/nsColumnSetFrame.cpp index ea19632fcdb..a0079ed5004 100644 --- a/layout/generic/nsColumnSetFrame.cpp +++ b/layout/generic/nsColumnSetFrame.cpp @@ -591,8 +591,8 @@ nsColumnSetFrame::ReflowChildren(nsHTMLReflowMetrics& aDesiredSize, *aBottomMarginCarriedOut = kidDesiredSize.mCarriedOutBottomMargin; - FinishReflowChild(child, PresContext(), &kidReflowState, - kidDesiredSize, childOrigin.x, childOrigin.y, 0); + FinishReflowChild(child, PresContext(), kidDesiredSize, + &kidReflowState, childOrigin.x, childOrigin.y, 0); childContentBottom = nsLayoutUtils::CalculateContentBottom(child); if (childContentBottom > aConfig.mColMaxHeight) { diff --git a/layout/generic/nsContainerFrame.cpp b/layout/generic/nsContainerFrame.cpp index f59e0511895..cfb191f440a 100644 --- a/layout/generic/nsContainerFrame.cpp +++ b/layout/generic/nsContainerFrame.cpp @@ -1034,8 +1034,8 @@ nsContainerFrame::PositionChildViews(nsIFrame* aFrame) nsresult nsContainerFrame::FinishReflowChild(nsIFrame* aKidFrame, nsPresContext* aPresContext, - const nsHTMLReflowState* aReflowState, const nsHTMLReflowMetrics& aDesiredSize, + const nsHTMLReflowState* aReflowState, nscoord aX, nscoord aY, uint32_t aFlags) @@ -1158,7 +1158,7 @@ nsContainerFrame::ReflowOverflowContainerChildren(nsPresContext* aPres NS_ENSURE_SUCCESS(rv, rv); //XXXfr Do we need to override any shrinkwrap effects here? // e.g. desiredSize.Width() = prevRect.width; - rv = FinishReflowChild(frame, aPresContext, &frameState, desiredSize, + rv = FinishReflowChild(frame, aPresContext, desiredSize, &frameState, prevRect.x, 0, aFlags); NS_ENSURE_SUCCESS(rv, rv); diff --git a/layout/generic/nsContainerFrame.h b/layout/generic/nsContainerFrame.h index be9da874ed2..519b45d7f07 100644 --- a/layout/generic/nsContainerFrame.h +++ b/layout/generic/nsContainerFrame.h @@ -227,8 +227,8 @@ public: */ static nsresult FinishReflowChild(nsIFrame* aKidFrame, nsPresContext* aPresContext, - const nsHTMLReflowState* aReflowState, const nsHTMLReflowMetrics& aDesiredSize, + const nsHTMLReflowState* aReflowState, nscoord aX, nscoord aY, uint32_t aFlags); diff --git a/layout/generic/nsFlexContainerFrame.cpp b/layout/generic/nsFlexContainerFrame.cpp index 5da05bda022..667b4044b43 100644 --- a/layout/generic/nsFlexContainerFrame.cpp +++ b/layout/generic/nsFlexContainerFrame.cpp @@ -953,7 +953,7 @@ nsFlexContainerFrame:: "should be complete"); rv = FinishReflowChild(aFlexItem.Frame(), aPresContext, - &childRSForMeasuringHeight, childDesiredSize, + childDesiredSize, &childRSForMeasuringHeight, 0, 0, flags); NS_ENSURE_SUCCESS(rv, rv); @@ -2526,7 +2526,7 @@ nsFlexContainerFrame::SizeItemInCrossAxis( // Tell the child we're done with its initial reflow. // (Necessary for e.g. GetBaseline() to work below w/out asserting) rv = FinishReflowChild(aItem.Frame(), aPresContext, - &aChildReflowState, childDesiredSize, 0, 0, flags); + childDesiredSize, &aChildReflowState, 0, 0, flags); NS_ENSURE_SUCCESS(rv, rv); // Save the sizing info that we learned from this reflow @@ -2863,7 +2863,7 @@ nsFlexContainerFrame::Reflow(nsPresContext* aPresContext, childReflowState.ApplyRelativePositioning(&physicalPosn); rv = FinishReflowChild(curItem.Frame(), aPresContext, - &childReflowState, childDesiredSize, + childDesiredSize, &childReflowState, physicalPosn.x, physicalPosn.y, 0); NS_ENSURE_SUCCESS(rv, rv); diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index 18a4a5ae06e..5bced56145c 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -7975,8 +7975,8 @@ nsFrame::BoxReflow(nsBoxLayoutState& aState, NS_ASSERTION(NS_FRAME_IS_COMPLETE(status), "bad status"); uint32_t layoutFlags = aState.LayoutFlags(); - nsContainerFrame::FinishReflowChild(this, aPresContext, &reflowState, - aDesiredSize, aX, aY, layoutFlags | NS_FRAME_NO_MOVE_FRAME); + nsContainerFrame::FinishReflowChild(this, aPresContext, aDesiredSize, + &reflowState, aX, aY, layoutFlags | NS_FRAME_NO_MOVE_FRAME); // Save the ascent. (bug 103925) if (IsCollapsed()) { diff --git a/layout/generic/nsFrameSetFrame.cpp b/layout/generic/nsFrameSetFrame.cpp index ad6cbee9b2d..c3a1cd06654 100644 --- a/layout/generic/nsFrameSetFrame.cpp +++ b/layout/generic/nsFrameSetFrame.cpp @@ -751,7 +751,7 @@ nsHTMLFramesetFrame::ReflowPlaceChild(nsIFrame* aChild, // Place and size the child metrics.Width() = aSize.width; metrics.Height() = aSize.height; - FinishReflowChild(aChild, aPresContext, nullptr, metrics, aOffset.x, aOffset.y, 0); + FinishReflowChild(aChild, aPresContext, metrics, nullptr, aOffset.x, aOffset.y, 0); } static diff --git a/layout/generic/nsGfxScrollFrame.cpp b/layout/generic/nsGfxScrollFrame.cpp index 39ea0d4a028..aee0cfa9b24 100644 --- a/layout/generic/nsGfxScrollFrame.cpp +++ b/layout/generic/nsGfxScrollFrame.cpp @@ -467,7 +467,7 @@ nsHTMLScrollFrame::ReflowScrolledFrame(ScrollReflowState* aState, // which will usually be different from the scrollport height; // invalidating the difference will cause unnecessary repainting. FinishReflowChild(mHelper.mScrolledFrame, presContext, - &kidReflowState, *aMetrics, 0, 0, + *aMetrics, &kidReflowState, 0, 0, NS_FRAME_NO_MOVE_FRAME | NS_FRAME_NO_SIZE_VIEW); // XXX Some frames (e.g., nsObjectFrame, nsFrameFrame, nsTextFrame) don't bother diff --git a/layout/generic/nsHTMLCanvasFrame.cpp b/layout/generic/nsHTMLCanvasFrame.cpp index 90cdda7a89d..e3533b4ade8 100644 --- a/layout/generic/nsHTMLCanvasFrame.cpp +++ b/layout/generic/nsHTMLCanvasFrame.cpp @@ -214,8 +214,8 @@ nsHTMLCanvasFrame::Reflow(nsPresContext* aPresContext, availSize); ReflowChild(childFrame, aPresContext, childDesiredSize, childReflowState, 0, 0, 0, childStatus, nullptr); - FinishReflowChild(childFrame, aPresContext, &childReflowState, - childDesiredSize, 0, 0, 0); + FinishReflowChild(childFrame, aPresContext, childDesiredSize, + &childReflowState, 0, 0, 0); NS_FRAME_TRACE(NS_FRAME_TRACE_CALLS, ("exit nsHTMLCanvasFrame::Reflow: size=%d,%d", diff --git a/layout/generic/nsPageContentFrame.cpp b/layout/generic/nsPageContentFrame.cpp index 66f151f8098..0676d9665ea 100644 --- a/layout/generic/nsPageContentFrame.cpp +++ b/layout/generic/nsPageContentFrame.cpp @@ -81,7 +81,7 @@ nsPageContentFrame::Reflow(nsPresContext* aPresContext, } // Place and size the child - FinishReflowChild(frame, aPresContext, &kidReflowState, aDesiredSize, 0, 0, 0); + FinishReflowChild(frame, aPresContext, aDesiredSize, &kidReflowState, 0, 0, 0); NS_ASSERTION(aPresContext->IsDynamic() || !NS_FRAME_IS_FULLY_COMPLETE(aStatus) || !frame->GetNextInFlow(), "bad child flow list"); diff --git a/layout/generic/nsPageFrame.cpp b/layout/generic/nsPageFrame.cpp index 4a772238248..0e711c5c822 100644 --- a/layout/generic/nsPageFrame.cpp +++ b/layout/generic/nsPageFrame.cpp @@ -138,7 +138,7 @@ NS_IMETHODIMP nsPageFrame::Reflow(nsPresContext* aPresContext, ReflowChild(frame, aPresContext, aDesiredSize, kidReflowState, xc, yc, 0, aStatus); // Place and size the child - FinishReflowChild(frame, aPresContext, &kidReflowState, aDesiredSize, xc, yc, 0); + FinishReflowChild(frame, aPresContext, aDesiredSize, &kidReflowState, xc, yc, 0); NS_ASSERTION(!NS_FRAME_IS_FULLY_COMPLETE(aStatus) || !frame->GetNextInFlow(), "bad child flow list"); diff --git a/layout/generic/nsSimplePageSequence.cpp b/layout/generic/nsSimplePageSequence.cpp index c52ca392520..101b13d7e1a 100644 --- a/layout/generic/nsSimplePageSequence.cpp +++ b/layout/generic/nsSimplePageSequence.cpp @@ -223,7 +223,7 @@ nsSimplePageSequenceFrame::Reflow(nsPresContext* aPresContext, // max width then center it horizontally ReflowChild(kidFrame, aPresContext, kidSize, kidReflowState, x, y, 0, status); - FinishReflowChild(kidFrame, aPresContext, nullptr, kidSize, x, y, 0); + FinishReflowChild(kidFrame, aPresContext, kidSize, nullptr, x, y, 0); y += kidSize.Height(); y += pageCSSMargin.bottom; diff --git a/layout/generic/nsVideoFrame.cpp b/layout/generic/nsVideoFrame.cpp index 50fe23f77f0..d0558b6d842 100644 --- a/layout/generic/nsVideoFrame.cpp +++ b/layout/generic/nsVideoFrame.cpp @@ -306,7 +306,7 @@ nsVideoFrame::Reflow(nsPresContext* aPresContext, ReflowChild(imageFrame, aPresContext, kidDesiredSize, kidReflowState, posterTopLeft.x, posterTopLeft.y, 0, aStatus); - FinishReflowChild(imageFrame, aPresContext, &kidReflowState, kidDesiredSize, + FinishReflowChild(imageFrame, aPresContext, kidDesiredSize, &kidReflowState, posterTopLeft.x, posterTopLeft.y, 0); } else if (child->GetContent() == mVideoControls) { // Reflow the video controls frame. @@ -343,7 +343,7 @@ nsVideoFrame::Reflow(nsPresContext* aPresContext, ReflowChild(child, aPresContext, kidDesiredSize, kidReflowState, mBorderPadding.left, mBorderPadding.top, 0, aStatus); FinishReflowChild(child, aPresContext, - &kidReflowState, kidDesiredSize, + kidDesiredSize, &kidReflowState, mBorderPadding.left, mBorderPadding.top, 0); } } diff --git a/layout/generic/nsViewportFrame.cpp b/layout/generic/nsViewportFrame.cpp index 9d14b77e871..913100afa3b 100644 --- a/layout/generic/nsViewportFrame.cpp +++ b/layout/generic/nsViewportFrame.cpp @@ -222,7 +222,7 @@ ViewportFrame::Reflow(nsPresContext* aPresContext, 0, 0, 0, aStatus); kidHeight = kidDesiredSize.Height(); - FinishReflowChild(kidFrame, aPresContext, nullptr, kidDesiredSize, 0, 0, 0); + FinishReflowChild(kidFrame, aPresContext, kidDesiredSize, nullptr, 0, 0, 0); } else { kidHeight = mFrames.FirstChild()->GetSize().height; } diff --git a/layout/mathml/nsMathMLContainerFrame.cpp b/layout/mathml/nsMathMLContainerFrame.cpp index d9dd8f7cc1a..14c397497f1 100644 --- a/layout/mathml/nsMathMLContainerFrame.cpp +++ b/layout/mathml/nsMathMLContainerFrame.cpp @@ -1325,8 +1325,8 @@ nsMathMLContainerFrame::PositionRowChildFrames(nscoord aOffsetX, while (child.Frame()) { nscoord dx = aOffsetX + child.X(); nscoord dy = aBaseline - child.Ascent(); - FinishReflowChild(child.Frame(), PresContext(), nullptr, - child.ReflowMetrics(), dx, dy, 0); + FinishReflowChild(child.Frame(), PresContext(), child.ReflowMetrics(), + nullptr, dx, dy, 0); ++child; } } diff --git a/layout/mathml/nsMathMLSelectedFrame.cpp b/layout/mathml/nsMathMLSelectedFrame.cpp index 84788889083..46b4cc0cbaf 100644 --- a/layout/mathml/nsMathMLSelectedFrame.cpp +++ b/layout/mathml/nsMathMLSelectedFrame.cpp @@ -144,7 +144,7 @@ nsMathMLSelectedFrame::Place(nsRenderingContext& aRenderingContext, if (childFrame) { GetReflowAndBoundingMetricsFor(childFrame, aDesiredSize, mBoundingMetrics); if (aPlaceOrigin) { - FinishReflowChild(childFrame, PresContext(), nullptr, aDesiredSize, 0, 0, 0); + FinishReflowChild(childFrame, PresContext(), aDesiredSize, nullptr, 0, 0, 0); } mReference.x = 0; mReference.y = aDesiredSize.TopAscent(); diff --git a/layout/mathml/nsMathMLTokenFrame.cpp b/layout/mathml/nsMathMLTokenFrame.cpp index 781511b35ae..4c39dad1ce8 100644 --- a/layout/mathml/nsMathMLTokenFrame.cpp +++ b/layout/mathml/nsMathMLTokenFrame.cpp @@ -215,7 +215,7 @@ nsMathMLTokenFrame::Place(nsRenderingContext& aRenderingContext, // place and size the child; (dx,0) makes the caret happy - bug 188146 dy = childSize.Height() == 0 ? 0 : aDesiredSize.TopAscent() - childSize.TopAscent(); - FinishReflowChild(childFrame, PresContext(), nullptr, childSize, dx, dy, 0); + FinishReflowChild(childFrame, PresContext(), childSize, nullptr, dx, dy, 0); dx += childSize.Width(); } } diff --git a/layout/mathml/nsMathMLmfencedFrame.cpp b/layout/mathml/nsMathMLmfencedFrame.cpp index e9dbc18b27e..8c64f4ca259 100644 --- a/layout/mathml/nsMathMLmfencedFrame.cpp +++ b/layout/mathml/nsMathMLmfencedFrame.cpp @@ -368,7 +368,7 @@ nsMathMLmfencedFrame::Reflow(nsPresContext* aPresContext, else aDesiredSize.mBoundingMetrics += bm; - FinishReflowChild(childFrame, aPresContext, nullptr, childSize, + FinishReflowChild(childFrame, aPresContext, childSize, nullptr, dx, ascent - childSize.TopAscent(), 0); dx += childSize.Width(); diff --git a/layout/mathml/nsMathMLmfracFrame.cpp b/layout/mathml/nsMathMLmfracFrame.cpp index a4f904bdf2c..20318c39bca 100644 --- a/layout/mathml/nsMathMLmfracFrame.cpp +++ b/layout/mathml/nsMathMLmfracFrame.cpp @@ -369,10 +369,10 @@ nsMathMLmfracFrame::PlaceInternal(nsRenderingContext& aRenderingContext, nscoord dy; // place numerator dy = 0; - FinishReflowChild(frameNum, presContext, nullptr, sizeNum, dxNum, dy, 0); + FinishReflowChild(frameNum, presContext, sizeNum, nullptr, dxNum, dy, 0); // place denominator dy = aDesiredSize.Height() - sizeDen.Height(); - FinishReflowChild(frameDen, presContext, nullptr, sizeDen, dxDen, dy, 0); + FinishReflowChild(frameDen, presContext, sizeDen, nullptr, dxDen, dy, 0); // place the fraction bar - dy is top of bar dy = aDesiredSize.TopAscent() - (axisHeight + actualRuleThickness/2); mLineRect.SetRect(leftSpace, dy, width - (leftSpace + rightSpace), @@ -483,7 +483,7 @@ nsMathMLmfracFrame::PlaceInternal(nsRenderingContext& aRenderingContext, dx = MirrorIfRTL(aDesiredSize.Width(), sizeNum.Width(), leadingSpace); dy = aDesiredSize.TopAscent() - numShift - sizeNum.TopAscent(); - FinishReflowChild(frameNum, presContext, nullptr, sizeNum, dx, dy, 0); + FinishReflowChild(frameNum, presContext, sizeNum, nullptr, dx, dy, 0); // place the fraction bar dx = MirrorIfRTL(aDesiredSize.Width(), mLineRect.width, @@ -496,7 +496,7 @@ nsMathMLmfracFrame::PlaceInternal(nsRenderingContext& aRenderingContext, dx = MirrorIfRTL(aDesiredSize.Width(), sizeDen.Width(), leadingSpace + bmNum.width + mLineRect.width); dy = aDesiredSize.TopAscent() + denShift - sizeDen.TopAscent(); - FinishReflowChild(frameDen, presContext, nullptr, sizeDen, dx, dy, 0); + FinishReflowChild(frameDen, presContext, sizeDen, nullptr, dx, dy, 0); } } diff --git a/layout/mathml/nsMathMLmmultiscriptsFrame.cpp b/layout/mathml/nsMathMLmmultiscriptsFrame.cpp index ab8a748f87a..9869d56051e 100644 --- a/layout/mathml/nsMathMLmmultiscriptsFrame.cpp +++ b/layout/mathml/nsMathMLmmultiscriptsFrame.cpp @@ -565,7 +565,7 @@ nsMathMLmmultiscriptsFrame::PlaceMultiScript(nsPresContext* aPresContext, // place the base ... childFrame = baseFrame; dy = aDesiredSize.TopAscent() - baseSize.TopAscent(); - FinishReflowChild (baseFrame, aPresContext, nullptr, baseSize, + FinishReflowChild (baseFrame, aPresContext, baseSize, nullptr, aFrame->MirrorIfRTL(aDesiredSize.Width(), baseSize.Width(), dx), @@ -598,8 +598,8 @@ nsMathMLmmultiscriptsFrame::PlaceMultiScript(nsPresContext* aPresContext, x += width - subScriptSize.Width(); dy = aDesiredSize.TopAscent() - subScriptSize.TopAscent() + maxSubScriptShift; - FinishReflowChild (subScriptFrame, aPresContext, nullptr, - subScriptSize, + FinishReflowChild (subScriptFrame, aPresContext, subScriptSize, + nullptr, aFrame->MirrorIfRTL(aDesiredSize.Width(), subScriptSize.Width(), x), @@ -612,8 +612,8 @@ nsMathMLmmultiscriptsFrame::PlaceMultiScript(nsPresContext* aPresContext, x += width - supScriptSize.Width(); dy = aDesiredSize.TopAscent() - supScriptSize.TopAscent() - maxSupScriptShift; - FinishReflowChild (supScriptFrame, aPresContext, nullptr, - supScriptSize, + FinishReflowChild (supScriptFrame, aPresContext, supScriptSize, + nullptr, aFrame->MirrorIfRTL(aDesiredSize.Width(), supScriptSize.Width(), x), diff --git a/layout/mathml/nsMathMLmrootFrame.cpp b/layout/mathml/nsMathMLmrootFrame.cpp index d49a3ee55b7..665a7d35b54 100644 --- a/layout/mathml/nsMathMLmrootFrame.cpp +++ b/layout/mathml/nsMathMLmrootFrame.cpp @@ -327,7 +327,7 @@ nsMathMLmrootFrame::Reflow(nsPresContext* aPresContext, // place the index nscoord dx = dxIndex; nscoord dy = aDesiredSize.TopAscent() - (indexRaisedAscent + indexSize.TopAscent() - bmIndex.ascent); - FinishReflowChild(indexFrame, aPresContext, nullptr, indexSize, + FinishReflowChild(indexFrame, aPresContext, indexSize, nullptr, MirrorIfRTL(aDesiredSize.Width(), indexSize.Width(), dx), dy, 0); @@ -342,7 +342,7 @@ nsMathMLmrootFrame::Reflow(nsPresContext* aPresContext, // place the base dy = aDesiredSize.TopAscent() - baseSize.TopAscent(); - FinishReflowChild(baseFrame, aPresContext, nullptr, baseSize, + FinishReflowChild(baseFrame, aPresContext, baseSize, nullptr, MirrorIfRTL(aDesiredSize.Width(), baseSize.Width(), dx), dy, 0); diff --git a/layout/mathml/nsMathMLmunderoverFrame.cpp b/layout/mathml/nsMathMLmunderoverFrame.cpp index 7001dc0d77a..712a9592981 100644 --- a/layout/mathml/nsMathMLmunderoverFrame.cpp +++ b/layout/mathml/nsMathMLmunderoverFrame.cpp @@ -607,16 +607,16 @@ nsMathMLmunderoverFrame::Place(nsRenderingContext& aRenderingContext, if (overFrame) { dy = aDesiredSize.TopAscent() - mBoundingMetrics.ascent + bmOver.ascent - overSize.TopAscent(); - FinishReflowChild (overFrame, PresContext(), nullptr, overSize, dxOver, dy, 0); + FinishReflowChild (overFrame, PresContext(), overSize, nullptr, dxOver, dy, 0); } // place base dy = aDesiredSize.TopAscent() - baseSize.TopAscent(); - FinishReflowChild (baseFrame, PresContext(), nullptr, baseSize, dxBase, dy, 0); + FinishReflowChild (baseFrame, PresContext(), baseSize, nullptr, dxBase, dy, 0); // place underscript if (underFrame) { dy = aDesiredSize.TopAscent() + mBoundingMetrics.descent - bmUnder.descent - underSize.TopAscent(); - FinishReflowChild (underFrame, PresContext(), nullptr, underSize, + FinishReflowChild (underFrame, PresContext(), underSize, nullptr, dxUnder, dy, 0); } } diff --git a/layout/svg/nsSVGForeignObjectFrame.cpp b/layout/svg/nsSVGForeignObjectFrame.cpp index 38e10814b2b..92f08111f78 100644 --- a/layout/svg/nsSVGForeignObjectFrame.cpp +++ b/layout/svg/nsSVGForeignObjectFrame.cpp @@ -569,7 +569,7 @@ nsSVGForeignObjectFrame::DoReflow() NS_FRAME_NO_MOVE_FRAME, status); NS_ASSERTION(mRect.width == desiredSize.Width() && mRect.height == desiredSize.Height(), "unexpected size"); - FinishReflowChild(kid, presContext, &reflowState, desiredSize, 0, 0, + FinishReflowChild(kid, presContext, desiredSize, &reflowState, 0, 0, NS_FRAME_NO_MOVE_FRAME); mInReflow = false; diff --git a/layout/tables/nsTableCellFrame.cpp b/layout/tables/nsTableCellFrame.cpp index 0f68b4a2a9a..9a434fa72de 100644 --- a/layout/tables/nsTableCellFrame.cpp +++ b/layout/tables/nsTableCellFrame.cpp @@ -948,7 +948,7 @@ NS_METHOD nsTableCellFrame::Reflow(nsPresContext* aPresContext, SetContentEmpty(isEmpty); // Place the child - FinishReflowChild(firstKid, aPresContext, &kidReflowState, kidSize, + FinishReflowChild(firstKid, aPresContext, kidSize, &kidReflowState, kidOrigin.x, kidOrigin.y, 0); nsTableFrame::InvalidateTableFrame(firstKid, origRect, origVisualOverflow, diff --git a/layout/tables/nsTableColGroupFrame.cpp b/layout/tables/nsTableColGroupFrame.cpp index e9ad4257ab9..ca6019d0d46 100644 --- a/layout/tables/nsTableColGroupFrame.cpp +++ b/layout/tables/nsTableColGroupFrame.cpp @@ -377,7 +377,7 @@ NS_METHOD nsTableColGroupFrame::Reflow(nsPresContext* aPresContext, nsReflowStatus status; ReflowChild(kidFrame, aPresContext, kidSize, kidReflowState, 0, 0, 0, status); - FinishReflowChild(kidFrame, aPresContext, nullptr, kidSize, 0, 0, 0); + FinishReflowChild(kidFrame, aPresContext, kidSize, nullptr, 0, 0, 0); } aDesiredSize.Width() = 0; diff --git a/layout/tables/nsTableFrame.cpp b/layout/tables/nsTableFrame.cpp index f644db232b7..3bef60f7e02 100644 --- a/layout/tables/nsTableFrame.cpp +++ b/layout/tables/nsTableFrame.cpp @@ -2538,7 +2538,7 @@ void nsTableFrame::PlaceChild(nsTableReflowState& aReflowState, (aKidFrame->GetStateBits() & NS_FRAME_FIRST_REFLOW) != 0; // Place and size the child - FinishReflowChild(aKidFrame, PresContext(), nullptr, aKidDesiredSize, + FinishReflowChild(aKidFrame, PresContext(), aKidDesiredSize, nullptr, aReflowState.x, aReflowState.y, 0); InvalidateTableFrame(aKidFrame, aOriginalKidRect, aOriginalKidVisualOverflow, @@ -3020,7 +3020,7 @@ nsTableFrame::ReflowColGroups(nsRenderingContext *aRenderingContext) nsReflowStatus cgStatus; ReflowChild(kidFrame, presContext, kidMet, kidReflowState, 0, 0, 0, cgStatus); - FinishReflowChild(kidFrame, presContext, nullptr, kidMet, 0, 0, 0); + FinishReflowChild(kidFrame, presContext, kidMet, nullptr, 0, 0, 0); } } SetHaveReflowedColGroups(true); diff --git a/layout/tables/nsTableOuterFrame.cpp b/layout/tables/nsTableOuterFrame.cpp index c6a7fce4648..69dc517cb6e 100644 --- a/layout/tables/nsTableOuterFrame.cpp +++ b/layout/tables/nsTableOuterFrame.cpp @@ -1032,8 +1032,8 @@ NS_METHOD nsTableOuterFrame::Reflow(nsPresContext* aPresContext, nsPoint captionOrigin; GetCaptionOrigin(captionSide, containSize, innerSize, innerMargin, captionSize, captionMargin, captionOrigin); - FinishReflowChild(mCaptionFrames.FirstChild(), aPresContext, captionRS, - captionMet, captionOrigin.x, captionOrigin.y, 0); + FinishReflowChild(mCaptionFrames.FirstChild(), aPresContext, captionMet, + captionRS, captionOrigin.x, captionOrigin.y, 0); captionRS->~nsHTMLReflowState(); } // XXX If the height is constrained then we need to check whether @@ -1042,7 +1042,7 @@ NS_METHOD nsTableOuterFrame::Reflow(nsPresContext* aPresContext, nsPoint innerOrigin; GetInnerOrigin(captionSide, containSize, captionSize, captionMargin, innerSize, innerMargin, innerOrigin); - FinishReflowChild(InnerTableFrame(), aPresContext, innerRS, innerMet, + FinishReflowChild(InnerTableFrame(), aPresContext, innerMet, innerRS, innerOrigin.x, innerOrigin.y, 0); innerRS->~nsHTMLReflowState(); diff --git a/layout/tables/nsTableRowFrame.cpp b/layout/tables/nsTableRowFrame.cpp index 7d470a19e6d..cae8758f2fe 100644 --- a/layout/tables/nsTableRowFrame.cpp +++ b/layout/tables/nsTableRowFrame.cpp @@ -951,7 +951,7 @@ nsTableRowFrame::ReflowChildren(nsPresContext* aPresContext, // Place the child desiredSize.Width() = availCellWidth; - FinishReflowChild(kidFrame, aPresContext, nullptr, desiredSize, x, 0, 0); + FinishReflowChild(kidFrame, aPresContext, desiredSize, nullptr, x, 0, 0); nsTableFrame::InvalidateTableFrame(kidFrame, kidRect, kidVisualOverflow, firstReflow); diff --git a/layout/tables/nsTableRowGroupFrame.cpp b/layout/tables/nsTableRowGroupFrame.cpp index b16b8795b8e..452255768e8 100644 --- a/layout/tables/nsTableRowGroupFrame.cpp +++ b/layout/tables/nsTableRowGroupFrame.cpp @@ -270,7 +270,7 @@ nsTableRowGroupFrame::PlaceChild(nsPresContext* aPresContext, (aKidFrame->GetStateBits() & NS_FRAME_FIRST_REFLOW) != 0; // Place and size the child - FinishReflowChild(aKidFrame, aPresContext, nullptr, aDesiredSize, 0, + FinishReflowChild(aKidFrame, aPresContext, aDesiredSize, nullptr, 0, aReflowState.y, 0); nsTableFrame::InvalidateTableFrame(aKidFrame, aOriginalKidRect,