Fix regression that text zoom was broken on text fields on Windows. b=205534 r+sr=roc a=asa

This commit is contained in:
dbaron%dbaron.org 2003-05-14 22:37:57 +00:00
Родитель 0bc39dd4ff
Коммит 474f773e17
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -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