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 git-svn-id: svn://10.0.0.236/trunk@78262 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user