bug 735577 - pt 3.2 - update the rest of layout code to use the new accessors on nsHTMLReflowState. r=smontagu

This commit is contained in:
Jonathan Kew
2013-12-27 17:59:21 +00:00
parent d22cec351a
commit 4796e463bc
52 changed files with 674 additions and 674 deletions

View File

@@ -180,7 +180,7 @@ nsHTMLCanvasFrame::Reflow(nsPresContext* aPresContext,
DISPLAY_REFLOW(aPresContext, this, aReflowState, aMetrics, aStatus);
NS_FRAME_TRACE(NS_FRAME_TRACE_CALLS,
("enter nsHTMLCanvasFrame::Reflow: availSize=%d,%d",
aReflowState.availableWidth, aReflowState.availableHeight));
aReflowState.AvailableWidth(), aReflowState.AvailableHeight()));
NS_PRECONDITION(mState & NS_FRAME_IN_REFLOW, "frame is not in reflow");
@@ -190,7 +190,7 @@ nsHTMLCanvasFrame::Reflow(nsPresContext* aPresContext,
aMetrics.height = aReflowState.ComputedHeight();
// stash this away so we can compute our inner area later
mBorderPadding = aReflowState.mComputedBorderPadding;
mBorderPadding = aReflowState.ComputedPhysicalBorderPadding();
aMetrics.width += mBorderPadding.left + mBorderPadding.right;
aMetrics.height += mBorderPadding.top + mBorderPadding.bottom;