From ef535464ab8c296f1158770c2765b0e11172d339 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Wed, 18 Mar 2009 14:13:43 +1300 Subject: [PATCH] Bug 483841. Animated background images on visibility:hidden elements shouldn't cause any painting. r+sr=dbaron --HG-- extra : rebase_source : de0ca0f1c37e7a47229f69ec1b375dd5c3202bb0 --- layout/base/nsImageLoader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layout/base/nsImageLoader.cpp b/layout/base/nsImageLoader.cpp index e69479d0d80..994ae66175c 100644 --- a/layout/base/nsImageLoader.cpp +++ b/layout/base/nsImageLoader.cpp @@ -254,5 +254,7 @@ nsImageLoader::RedrawDirtyFrame(const nsRect* aDamageRect) #endif - mFrame->Invalidate(bounds); + if (mFrame->GetStyleVisibility()->IsVisible()) { + mFrame->Invalidate(bounds); + } }