Switch nsLayoutUtils inflation methods to the new setup with state on the pres context. (Bug 706609, patch 5) r=roc

This is the third of three patches to rework the way we handle getting
the font inflation container and width data during reflow, which are
needed so that we can sometimes honor inflation during intrinsic width
calculation (which we need to do to make some form controls inflate
correctly).
This commit is contained in:
L. David Baron
2012-01-24 17:21:29 -08:00
parent eadb1db264
commit c6e45feee7
20 changed files with 96 additions and 233 deletions

View File

@@ -2213,7 +2213,8 @@ nsHTMLReflowState::CalcLineHeight() const
(mCBReflowState ? mCBReflowState->mComputedHeight : NS_AUTOHEIGHT);
return CalcLineHeight(frame->GetStyleContext(), blockHeight,
nsLayoutUtils::FontSizeInflationFor(*this));
nsLayoutUtils::FontSizeInflationFor(frame,
nsLayoutUtils::eInReflow));
}
/* static */ nscoord