Bug 174055, part 4: mechanical fixups outside gfx.

This commit is contained in:
Zack Weinberg
2011-04-07 18:05:49 -07:00
parent 5a561b633c
commit 2da91ac5cb
46 changed files with 101 additions and 101 deletions

View File

@@ -229,7 +229,7 @@ nsTextControlFrame::CalcIntrinsicSize(nsRenderingContext* aRenderingContext,
nscoord charWidth = 0;
nscoord charMaxAdvance = 0;
nsCOMPtr<nsIFontMetrics> fontMet;
nsRefPtr<nsFontMetrics> fontMet;
nsresult rv =
nsLayoutUtils::GetFontMetricsForFrame(this, getter_AddRefs(fontMet));
NS_ENSURE_SUCCESS(rv, rv);
@@ -591,7 +591,7 @@ nsTextControlFrame::GetBoxAscent(nsBoxLayoutState& aState)
IsSingleLineTextControl() ? clientRect.height :
nsHTMLReflowState::CalcLineHeight(GetStyleContext(), NS_AUTOHEIGHT);
nsCOMPtr<nsIFontMetrics> fontMet;
nsRefPtr<nsFontMetrics> fontMet;
nsresult rv =
nsLayoutUtils::GetFontMetricsForFrame(this, getter_AddRefs(fontMet));
NS_ENSURE_SUCCESS(rv, 0);