Fix call to wrong method (passing nscoord as enum). (Bug 747720, patch 4) r=roc approval-mozilla-aurora=blassey
authorL. David Baron <dbaron@dbaron.org>
Sun, 20 May 2012 22:18:27 -0700
changeset 95858 c7c3f34a8bc37b2c1d729fbfacfe5d2210d7a02d
parent 95857 750366fff45c7d382a7de0771d7141fd3af68a7c
child 95859 d6264b8231b74632c05b1b2541c904fabb79f01c
push id886
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 19:57:52 +0000
treeherdermozilla-beta@bbd8d5efd6d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs747720
milestone14.0a2
Fix call to wrong method (passing nscoord as enum). (Bug 747720, patch 4) r=roc approval-mozilla-aurora=blassey
layout/forms/nsListControlFrame.cpp
--- a/layout/forms/nsListControlFrame.cpp
+++ b/layout/forms/nsListControlFrame.cpp
@@ -378,17 +378,17 @@ nsListControlFrame::CalcHeightOfARow()
   // in addition to option elements, either of which may be visible or
   // invisible, may use different fonts, etc.
   PRInt32 heightOfARow = GetMaxOptionHeight(GetOptionsContainer());
 
   // Check to see if we have zero items (and optimize by checking
   // heightOfARow first)
   if (heightOfARow == 0 && GetNumberOfOptions() == 0) {
     float inflation =
-      nsLayoutUtils::FontSizeInflationInner(this, nsLayoutUtils::eInReflow);
+      nsLayoutUtils::FontSizeInflationFor(this, nsLayoutUtils::eInReflow);
     heightOfARow = CalcFallbackRowHeight(inflation);
   }
 
   return heightOfARow;
 }
 
 nscoord
 nsListControlFrame::GetPrefWidth(nsRenderingContext *aRenderingContext)