For NavQuirks we need to set the appropriate font for buttons/selects or for text and textarea

If these fonts are set in the html.css or quirk.css they cannot be overriden
We now use the CSS3 font names and for NavQuirks we adjust the fonts to match Nav 4.x
The change is to give field fonts monospace instead of sans-serif
Bug 44656 r=dcone
This commit is contained in:
rods%netscape.com 2000-09-06 14:02:44 +00:00
Родитель 1d708745d8
Коммит d21753a7fc
3 изменённых файлов: 12 добавлений и 9 удалений

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

@ -1654,9 +1654,10 @@ MapDeclarationFontInto(nsICSSDeclaration* aDeclaration,
// NavQuirks uses sans-serif instead of whatever the native font is
if (eCompatibility_NavQuirks == mode) {
if (sysID == eSystemAttr_Font_Button ||
sysID == eSystemAttr_Font_Caption ||
sysID == eSystemAttr_Font_Field) {
if (sysID == eSystemAttr_Font_Field) {
font->mFont.name.AssignWithConversion("monospace");
} else if (sysID == eSystemAttr_Font_Button ||
sysID == eSystemAttr_Font_Caption) {
font->mFont.name.AssignWithConversion("sans-serif");
}
}

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

@ -1654,9 +1654,10 @@ MapDeclarationFontInto(nsICSSDeclaration* aDeclaration,
// NavQuirks uses sans-serif instead of whatever the native font is
if (eCompatibility_NavQuirks == mode) {
if (sysID == eSystemAttr_Font_Button ||
sysID == eSystemAttr_Font_Caption ||
sysID == eSystemAttr_Font_Field) {
if (sysID == eSystemAttr_Font_Field) {
font->mFont.name.AssignWithConversion("monospace");
} else if (sysID == eSystemAttr_Font_Button ||
sysID == eSystemAttr_Font_Caption) {
font->mFont.name.AssignWithConversion("sans-serif");
}
}

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

@ -1654,9 +1654,10 @@ MapDeclarationFontInto(nsICSSDeclaration* aDeclaration,
// NavQuirks uses sans-serif instead of whatever the native font is
if (eCompatibility_NavQuirks == mode) {
if (sysID == eSystemAttr_Font_Button ||
sysID == eSystemAttr_Font_Caption ||
sysID == eSystemAttr_Font_Field) {
if (sysID == eSystemAttr_Font_Field) {
font->mFont.name.AssignWithConversion("monospace");
} else if (sysID == eSystemAttr_Font_Button ||
sysID == eSystemAttr_Font_Caption) {
font->mFont.name.AssignWithConversion("sans-serif");
}
}