зеркало из https://github.com/mozilla/pjs.git
Fix regression that text zoom was broken on text fields on Windows. b=205534 r+sr=roc a=asa
This commit is contained in:
Родитель
0bc39dd4ff
Коммит
474f773e17
|
@ -1878,7 +1878,8 @@ SetFont(nsIPresContext* aPresContext, nsStyleContext* aContext,
|
|||
case eSystemFont_Button:
|
||||
case eSystemFont_List:
|
||||
// Assumption: system defined font is proportional
|
||||
aFont->mSize = PR_MAX(defaultVariableFont->size - NSIntPointsToTwips(2), 0);
|
||||
aFont->mSize = nsStyleFont::ZoomText(aPresContext,
|
||||
PR_MAX(defaultVariableFont->size - NSIntPointsToTwips(2), 0));
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -1878,7 +1878,8 @@ SetFont(nsIPresContext* aPresContext, nsStyleContext* aContext,
|
|||
case eSystemFont_Button:
|
||||
case eSystemFont_List:
|
||||
// Assumption: system defined font is proportional
|
||||
aFont->mSize = PR_MAX(defaultVariableFont->size - NSIntPointsToTwips(2), 0);
|
||||
aFont->mSize = nsStyleFont::ZoomText(aPresContext,
|
||||
PR_MAX(defaultVariableFont->size - NSIntPointsToTwips(2), 0));
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче