Bug 483841. Animated background images on visibility:hidden elements shouldn't cause any painting. r+sr=dbaron

--HG--
extra : rebase_source : de0ca0f1c37e7a47229f69ec1b375dd5c3202bb0
This commit is contained in:
Robert O'Callahan 2009-03-18 14:13:43 +13:00
parent 2414bbf369
commit ef535464ab

View File

@ -254,5 +254,7 @@ nsImageLoader::RedrawDirtyFrame(const nsRect* aDamageRect)
#endif
mFrame->Invalidate(bounds);
if (mFrame->GetStyleVisibility()->IsVisible()) {
mFrame->Invalidate(bounds);
}
}