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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user