Bug 794905 - nsLayoutUtils::FontSizeInflationEnabled can return nsresult instead of bool; r=jwir3

This commit is contained in:
Aryeh Gregor 2012-09-27 18:24:17 +02:00
parent a7bec565c4
commit 33274f25d7

View File

@ -4961,7 +4961,7 @@ nsLayoutUtils::FontSizeInflationEnabled(nsPresContext *aPresContext)
nsresult rv;
nsCOMPtr<nsIScreenManager> screenMgr =
do_GetService("@mozilla.org/gfx/screenmanager;1", &rv);
NS_ENSURE_SUCCESS(rv, rv);
NS_ENSURE_SUCCESS(rv, false);
nsCOMPtr<nsIScreen> screen;
screenMgr->GetPrimaryScreen(getter_AddRefs(screen));