diff --git a/layout/base/nsImageLoader.cpp b/layout/base/nsImageLoader.cpp index e69479d0d80b..994ae66175cc 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); + } }