Bug 903327 - Use device pixels per css pixel when calculating default font sizes. r=kats
authorWes Johnston <wjohnston@mozilla.com>
Wed, 11 Sep 2013 11:36:28 -0700
changeset 146602 a253c1d6429358471558b3cf261cbeb2a82c52b6
parent 146601 add6b8c0a28f522b4042cb00599145451fe49df4
child 146603 67646b378722991ff609e79b0f7d8a091b54bc74
push id25266
push userryanvm@gmail.com
push dateThu, 12 Sep 2013 00:24:40 +0000
treeherdermozilla-central@162f05aec17a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskats
bugs903327
milestone26.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 903327 - Use device pixels per css pixel when calculating default font sizes. r=kats
widget/android/nsLookAndFeel.cpp
--- a/widget/android/nsLookAndFeel.cpp
+++ b/widget/android/nsLookAndFeel.cpp
@@ -448,17 +448,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()
 {