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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user