Bug 659536 part.2 Replace nsContentUtils::GetIntPref() with Preferences::GetInt() or Preferences::GetUint() r=roc
This commit is contained in:
@@ -1639,9 +1639,10 @@ static eNormalLineHeightControl GetNormalLineHeightCalcControl(void)
|
||||
if (sNormalLineHeightControl == eUninitialized) {
|
||||
// browser.display.normal_lineheight_calc_control is not user
|
||||
// changeable, so no need to register callback for it.
|
||||
sNormalLineHeightControl =
|
||||
static_cast<eNormalLineHeightControl>
|
||||
(nsContentUtils::GetIntPref("browser.display.normal_lineheight_calc_control", eNoExternalLeading));
|
||||
PRInt32 val =
|
||||
Preferences::GetInt("browser.display.normal_lineheight_calc_control",
|
||||
eNoExternalLeading);
|
||||
sNormalLineHeightControl = static_cast<eNormalLineHeightControl>(val);
|
||||
}
|
||||
return sNormalLineHeightControl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user