зеркало из https://github.com/mozilla/gecko-dev.git
#30127 "-moz-fixed not friendly with the cascade". Inherit NS_STYLE_FONT_USE_FIXED together with the font face.
This commit is contained in:
Родитель
b624fe2894
Коммит
b8fda14b1b
|
@ -1312,8 +1312,8 @@ MapDeclarationFontInto(nsICSSDeclaration* aDeclaration,
|
|||
else if (eCSSUnit_Inherit == ourFont->mFamily.GetUnit()) {
|
||||
font->mFont.name = parentFont->mFont.name;
|
||||
font->mFixedFont.name = parentFont->mFixedFont.name;
|
||||
font->mFlags &= ~NS_STYLE_FONT_FACE_EXPLICIT;
|
||||
font->mFlags |= (parentFont->mFlags & NS_STYLE_FONT_FACE_EXPLICIT);
|
||||
font->mFlags &= ~(NS_STYLE_FONT_FACE_EXPLICIT | NS_STYLE_FONT_USE_FIXED);
|
||||
font->mFlags |= (parentFont->mFlags & (NS_STYLE_FONT_FACE_EXPLICIT | NS_STYLE_FONT_USE_FIXED));
|
||||
}
|
||||
|
||||
// font-style: enum, normal, inherit
|
||||
|
|
|
@ -1312,8 +1312,8 @@ MapDeclarationFontInto(nsICSSDeclaration* aDeclaration,
|
|||
else if (eCSSUnit_Inherit == ourFont->mFamily.GetUnit()) {
|
||||
font->mFont.name = parentFont->mFont.name;
|
||||
font->mFixedFont.name = parentFont->mFixedFont.name;
|
||||
font->mFlags &= ~NS_STYLE_FONT_FACE_EXPLICIT;
|
||||
font->mFlags |= (parentFont->mFlags & NS_STYLE_FONT_FACE_EXPLICIT);
|
||||
font->mFlags &= ~(NS_STYLE_FONT_FACE_EXPLICIT | NS_STYLE_FONT_USE_FIXED);
|
||||
font->mFlags |= (parentFont->mFlags & (NS_STYLE_FONT_FACE_EXPLICIT | NS_STYLE_FONT_USE_FIXED));
|
||||
}
|
||||
|
||||
// font-style: enum, normal, inherit
|
||||
|
|
|
@ -1312,8 +1312,8 @@ MapDeclarationFontInto(nsICSSDeclaration* aDeclaration,
|
|||
else if (eCSSUnit_Inherit == ourFont->mFamily.GetUnit()) {
|
||||
font->mFont.name = parentFont->mFont.name;
|
||||
font->mFixedFont.name = parentFont->mFixedFont.name;
|
||||
font->mFlags &= ~NS_STYLE_FONT_FACE_EXPLICIT;
|
||||
font->mFlags |= (parentFont->mFlags & NS_STYLE_FONT_FACE_EXPLICIT);
|
||||
font->mFlags &= ~(NS_STYLE_FONT_FACE_EXPLICIT | NS_STYLE_FONT_USE_FIXED);
|
||||
font->mFlags |= (parentFont->mFlags & (NS_STYLE_FONT_FACE_EXPLICIT | NS_STYLE_FONT_USE_FIXED));
|
||||
}
|
||||
|
||||
// font-style: enum, normal, inherit
|
||||
|
|
Загрузка…
Ссылка в новой задаче