Make setting body.style.background invalidate the whole canvas so the

background is repainted correctly. r=kmcclusk@netscape.com, sr=attinasi
This commit is contained in:
bzbarsky@mit.edu
2001-10-23 22:08:30 +00:00
parent 3bbbd163f8
commit acf70aedb1
4 changed files with 10 additions and 4 deletions
+2 -1
View File
@@ -691,7 +691,8 @@ CanvasFrame::AttributeChanged(nsIPresContext* aPresContext,
// if the background color or image is changing, invalidate the canvas
if (aHint > 0){
if (aAttribute == nsHTMLAtoms::bgcolor ||
aAttribute == nsHTMLAtoms::background) {
aAttribute == nsHTMLAtoms::background ||
aAttribute == nsHTMLAtoms::style) {
Invalidate(aPresContext,mRect,PR_FALSE);
}
}