diff --git a/layout/style/ImageLoader.cpp b/layout/style/ImageLoader.cpp index 11822183435..77c5fa6c4a5 100644 --- a/layout/style/ImageLoader.cpp +++ b/layout/style/ImageLoader.cpp @@ -322,7 +322,6 @@ void InvalidateImagesCallback(nsIFrame* aFrame, } aItem->Invalidate(); - aFrame->SchedulePaint(); // Update ancestor rendering observers (-moz-element etc) nsIFrame *f = aFrame; @@ -350,6 +349,7 @@ ImageLoader::DoRedraw(FrameSet* aFrameSet) frame->InvalidateFrame(); } else { FrameLayerBuilder::IterateRetainedDataFor(frame, InvalidateImagesCallback); + frame->SchedulePaint(); } } }