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
parent 111e7e37ca
commit 0ec574a5c1
2 changed files with 2 additions and 0 deletions

View File

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

View File

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