Fix for bug #2285. Just reseting the mFlags isn't enough, because the PaintBackground()

member function ignores the flags and checks for a non-empty URL. This way is safer and
should work in all cases
This commit is contained in:
troy%netscape.com 1999-01-11 19:44:22 +00:00
Родитель 111e7e37ca
Коммит 0ec574a5c1
2 изменённых файлов: 2 добавлений и 0 удалений

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

@ -474,6 +474,7 @@ BodyFixupRule::MapStyleInto(nsIStyleContext* aContext, nsIPresContext* aPresCont
mutableStyleColor = (nsStyleColor*)aContext->GetMutableStyleData(eStyleStruct_Color); mutableStyleColor = (nsStyleColor*)aContext->GetMutableStyleData(eStyleStruct_Color);
mutableStyleColor->mBackgroundFlags = NS_STYLE_BG_COLOR_TRANSPARENT | mutableStyleColor->mBackgroundFlags = NS_STYLE_BG_COLOR_TRANSPARENT |
NS_STYLE_BG_IMAGE_NONE; NS_STYLE_BG_IMAGE_NONE;
mutableStyleColor->mBackgroundImage.SetLength(0);
} }
NS_RELEASE(parentContext); NS_RELEASE(parentContext);
} }

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

@ -474,6 +474,7 @@ BodyFixupRule::MapStyleInto(nsIStyleContext* aContext, nsIPresContext* aPresCont
mutableStyleColor = (nsStyleColor*)aContext->GetMutableStyleData(eStyleStruct_Color); mutableStyleColor = (nsStyleColor*)aContext->GetMutableStyleData(eStyleStruct_Color);
mutableStyleColor->mBackgroundFlags = NS_STYLE_BG_COLOR_TRANSPARENT | mutableStyleColor->mBackgroundFlags = NS_STYLE_BG_COLOR_TRANSPARENT |
NS_STYLE_BG_IMAGE_NONE; NS_STYLE_BG_IMAGE_NONE;
mutableStyleColor->mBackgroundImage.SetLength(0);
} }
NS_RELEASE(parentContext); NS_RELEASE(parentContext);
} }