fixed text-decorations some more

This commit is contained in:
peterl%netscape.com 1998-11-06 01:06:26 +00:00
Родитель 077d785b93
Коммит fa0074c6e2
3 изменённых файлов: 6 добавлений и 6 удалений

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

@ -1005,8 +1005,8 @@ void MapDeclarationInto(nsICSSDeclaration* aDeclaration,
// text-decoration: none, enum (bit field), inherit
if (eCSSUnit_Enumerated == ourText->mDecoration.GetUnit()) {
PRInt32 td = ourText->mDecoration.GetIntValue();
font->mFont.decorations |= td;
font->mFixedFont.decorations |= td;
font->mFont.decorations = (parentFont->mFont.decorations | td);
font->mFixedFont.decorations = (parentFont->mFixedFont.decorations | td);
text->mTextDecoration = td;
}
else if (eCSSUnit_None == ourText->mDecoration.GetUnit()) {

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

@ -1005,8 +1005,8 @@ void MapDeclarationInto(nsICSSDeclaration* aDeclaration,
// text-decoration: none, enum (bit field), inherit
if (eCSSUnit_Enumerated == ourText->mDecoration.GetUnit()) {
PRInt32 td = ourText->mDecoration.GetIntValue();
font->mFont.decorations |= td;
font->mFixedFont.decorations |= td;
font->mFont.decorations = (parentFont->mFont.decorations | td);
font->mFixedFont.decorations = (parentFont->mFixedFont.decorations | td);
text->mTextDecoration = td;
}
else if (eCSSUnit_None == ourText->mDecoration.GetUnit()) {

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

@ -1005,8 +1005,8 @@ void MapDeclarationInto(nsICSSDeclaration* aDeclaration,
// text-decoration: none, enum (bit field), inherit
if (eCSSUnit_Enumerated == ourText->mDecoration.GetUnit()) {
PRInt32 td = ourText->mDecoration.GetIntValue();
font->mFont.decorations |= td;
font->mFixedFont.decorations |= td;
font->mFont.decorations = (parentFont->mFont.decorations | td);
font->mFixedFont.decorations = (parentFont->mFixedFont.decorations | td);
text->mTextDecoration = td;
}
else if (eCSSUnit_None == ourText->mDecoration.GetUnit()) {