Loading layout/style/nsRuleNode.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -2981,7 +2981,9 @@ nsRuleNode::SetFont(nsPresContext* aPresContext, nsStyleContext* aContext, gfxFontStyle fontStyle; LookAndFeel::FontID fontID = (LookAndFeel::FontID)systemFontValue->GetIntValue(); if (LookAndFeel::GetFont(fontID, systemFont.name, fontStyle)) { float devPerCSS = (float)nsPresContext::AppUnitsPerCSSPixel() / aPresContext->AppUnitsPerDevPixel(); if (LookAndFeel::GetFont(fontID, systemFont.name, fontStyle, devPerCSS)) { systemFont.style = fontStyle.style; systemFont.systemFont = fontStyle.systemFont; systemFont.variant = NS_FONT_VARIANT_NORMAL; Loading widget/LookAndFeel.h +3 −1 Original line number Diff line number Diff line Loading @@ -491,8 +491,10 @@ public: * @param aID Which system-theme font is wanted. * @param aName The name of the font to use. * @param aStyle Styling to apply to the font. * @param aDevPixPerCSSPixel Ratio of device pixels to CSS pixels */ static bool GetFont(FontID aID, nsString& aName, gfxFontStyle& aStyle); static bool GetFont(FontID aID, nsString& aName, gfxFontStyle& aStyle, float aDevPixPerCSSPixel); /** * GetPasswordCharacter() returns a unicode character which should be used Loading widget/android/nsLookAndFeel.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -446,7 +446,8 @@ nsLookAndFeel::GetFloatImpl(FloatID aID, float &aResult) /*virtual*/ bool nsLookAndFeel::GetFontImpl(FontID aID, nsString& aFontName, gfxFontStyle& aFontStyle) gfxFontStyle& aFontStyle, float aDevPixPerCSSPixel) { aFontName.AssignLiteral("\"Droid Sans\""); aFontStyle.style = NS_FONT_STYLE_NORMAL; Loading widget/android/nsLookAndFeel.h +2 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,8 @@ public: virtual nsresult NativeGetColor(ColorID aID, nscolor &aResult); virtual nsresult GetIntImpl(IntID aID, int32_t &aResult); virtual nsresult GetFloatImpl(FloatID aID, float &aResult); virtual bool GetFontImpl(FontID aID, nsString& aName, gfxFontStyle& aStyle); virtual bool GetFontImpl(FontID aID, nsString& aName, gfxFontStyle& aStyle, float aDevPixPerCSSPixel); virtual bool GetEchoPasswordImpl(); virtual uint32_t GetPasswordMaskDelayImpl(); virtual PRUnichar GetPasswordCharacterImpl(); Loading widget/cocoa/nsLookAndFeel.h +2 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,8 @@ public: virtual nsresult GetIntImpl(IntID aID, int32_t &aResult); virtual nsresult GetFloatImpl(FloatID aID, float &aResult); virtual bool GetFontImpl(FontID aID, nsString& aFontName, gfxFontStyle& aFontStyle); gfxFontStyle& aFontStyle, float aDevPixPerCSSPixel); virtual PRUnichar GetPasswordCharacterImpl() { // unicode value for the bullet character, used for password textfields. Loading Loading
layout/style/nsRuleNode.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -2981,7 +2981,9 @@ nsRuleNode::SetFont(nsPresContext* aPresContext, nsStyleContext* aContext, gfxFontStyle fontStyle; LookAndFeel::FontID fontID = (LookAndFeel::FontID)systemFontValue->GetIntValue(); if (LookAndFeel::GetFont(fontID, systemFont.name, fontStyle)) { float devPerCSS = (float)nsPresContext::AppUnitsPerCSSPixel() / aPresContext->AppUnitsPerDevPixel(); if (LookAndFeel::GetFont(fontID, systemFont.name, fontStyle, devPerCSS)) { systemFont.style = fontStyle.style; systemFont.systemFont = fontStyle.systemFont; systemFont.variant = NS_FONT_VARIANT_NORMAL; Loading
widget/LookAndFeel.h +3 −1 Original line number Diff line number Diff line Loading @@ -491,8 +491,10 @@ public: * @param aID Which system-theme font is wanted. * @param aName The name of the font to use. * @param aStyle Styling to apply to the font. * @param aDevPixPerCSSPixel Ratio of device pixels to CSS pixels */ static bool GetFont(FontID aID, nsString& aName, gfxFontStyle& aStyle); static bool GetFont(FontID aID, nsString& aName, gfxFontStyle& aStyle, float aDevPixPerCSSPixel); /** * GetPasswordCharacter() returns a unicode character which should be used Loading
widget/android/nsLookAndFeel.cpp +2 −1 Original line number Diff line number Diff line Loading @@ -446,7 +446,8 @@ nsLookAndFeel::GetFloatImpl(FloatID aID, float &aResult) /*virtual*/ bool nsLookAndFeel::GetFontImpl(FontID aID, nsString& aFontName, gfxFontStyle& aFontStyle) gfxFontStyle& aFontStyle, float aDevPixPerCSSPixel) { aFontName.AssignLiteral("\"Droid Sans\""); aFontStyle.style = NS_FONT_STYLE_NORMAL; Loading
widget/android/nsLookAndFeel.h +2 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,8 @@ public: virtual nsresult NativeGetColor(ColorID aID, nscolor &aResult); virtual nsresult GetIntImpl(IntID aID, int32_t &aResult); virtual nsresult GetFloatImpl(FloatID aID, float &aResult); virtual bool GetFontImpl(FontID aID, nsString& aName, gfxFontStyle& aStyle); virtual bool GetFontImpl(FontID aID, nsString& aName, gfxFontStyle& aStyle, float aDevPixPerCSSPixel); virtual bool GetEchoPasswordImpl(); virtual uint32_t GetPasswordMaskDelayImpl(); virtual PRUnichar GetPasswordCharacterImpl(); Loading
widget/cocoa/nsLookAndFeel.h +2 −1 Original line number Diff line number Diff line Loading @@ -16,7 +16,8 @@ public: virtual nsresult GetIntImpl(IntID aID, int32_t &aResult); virtual nsresult GetFloatImpl(FloatID aID, float &aResult); virtual bool GetFontImpl(FontID aID, nsString& aFontName, gfxFontStyle& aFontStyle); gfxFontStyle& aFontStyle, float aDevPixPerCSSPixel); virtual PRUnichar GetPasswordCharacterImpl() { // unicode value for the bullet character, used for password textfields. Loading