Bug 389938 - Full page zoom does not affect text with CSS font set to message-box. r+sr=roc, a=pavlov
git-svn-id: svn://10.0.0.236/trunk@231456 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -482,7 +482,7 @@ public:
|
||||
* Get the unscaled ratio of app units to dev pixels; useful if something
|
||||
* needs to be converted from to unscaled pixels
|
||||
*/
|
||||
PRInt32 UnscaledAppUnitsPerDevPixel() { return mAppUnitsPerDevNotScaledPixel; }
|
||||
PRInt32 UnscaledAppUnitsPerDevPixel() const { return mAppUnitsPerDevNotScaledPixel; }
|
||||
|
||||
protected:
|
||||
PRInt32 mAppUnitsPerDevPixel;
|
||||
|
||||
@@ -402,7 +402,7 @@ nsThebesDeviceContext::GetSystemFont(nsSystemFontID aID, nsFont *aFont) const
|
||||
aFont->familyNameQuirks = fontStyle.familyNameQuirks;
|
||||
aFont->weight = fontStyle.weight;
|
||||
aFont->decorations = NS_FONT_DECORATION_NONE;
|
||||
aFont->size = NSFloatPixelsToAppUnits(fontStyle.size, AppUnitsPerDevPixel());
|
||||
aFont->size = NSFloatPixelsToAppUnits(fontStyle.size, UnscaledAppUnitsPerDevPixel());
|
||||
//aFont->langGroup = fontStyle.langGroup;
|
||||
aFont->sizeAdjust = fontStyle.sizeAdjust;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user