зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
1d708745d8
Коммит
d21753a7fc
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче