Bug 903327 - Use device pixels per css pixel when calculating default font sizes. r=kats, a=akeybl
authorWes Johnston <wjohnston@mozilla.com>
Wed, 11 Sep 2013 11:36:28 -0700
changeset 154036 2e2866bc317e5084127c573ea67621dc9040b524
parent 154035 ed7e018f12bd4d0a86c7e0e3a4280a38a9fc0c13
child 154037 a318b4dbe93093661b8cc143874999b5a04a7d86
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats, akeybl
bugs903327
milestone25.0a2
Bug 903327 - Use device pixels per css pixel when calculating default font sizes. r=kats, a=akeybl
widget/android/nsLookAndFeel.cpp
--- a/widget/android/nsLookAndFeel.cpp
+++ b/widget/android/nsLookAndFeel.cpp
@@ -449,17 +449,17 @@ bool
 nsLookAndFeel::GetFontImpl(FontID aID, nsString& aFontName,
                            gfxFontStyle& aFontStyle,
                            float aDevPixPerCSSPixel)
 {
     aFontName.AssignLiteral("\"Droid Sans\"");
     aFontStyle.style = NS_FONT_STYLE_NORMAL;
     aFontStyle.weight = NS_FONT_WEIGHT_NORMAL;
     aFontStyle.stretch = NS_FONT_STRETCH_NORMAL;
-    aFontStyle.size = 9.0 * 96.0f / 72.0f;
+    aFontStyle.size = 9.0 * 96.0f / 72.0f * aDevPixPerCSSPixel;
     aFontStyle.systemFont = true;
     return true;
 }
 
 /*virtual*/
 bool
 nsLookAndFeel::GetEchoPasswordImpl()
 {