Bug 174055, part 4: mechanical fixups outside gfx.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user