Bug 266236 part 1: Preliminary API cleanup on nsIRenderingContext.

This commit is contained in:
Jan Küchler
2011-04-07 18:04:39 -07:00
parent 9cc0c4fba8
commit ed48629385
41 changed files with 141 additions and 167 deletions

View File

@@ -639,8 +639,7 @@ nsMathMLmtableOuterFrame::Reflow(nsPresContext* aPresContext,
// XXX should instead use style data from the row of reference here ?
aReflowState.rendContext->SetFont(GetStyleFont()->mFont,
aPresContext->GetUserFontSet());
nsCOMPtr<nsIFontMetrics> fm;
aReflowState.rendContext->GetFontMetrics(*getter_AddRefs(fm));
nsCOMPtr<nsIFontMetrics> fm = aReflowState.rendContext->GetFontMetrics();
nscoord axisHeight;
GetAxisHeight(*aReflowState.rendContext, fm, axisHeight);
if (rowFrame) {