Index: Source/core/fetch/ImageResource.cpp |
diff --git a/Source/core/fetch/ImageResource.cpp b/Source/core/fetch/ImageResource.cpp |
index 49e7c4d8f1b2b0c87797ba5653bbe05455644262..fe3a1a173b7cbd0217fcbf23c55120519c5a8012 100644 |
--- a/Source/core/fetch/ImageResource.cpp |
+++ b/Source/core/fetch/ImageResource.cpp |
@@ -470,6 +470,18 @@ void ImageResource::animationAdvanced(const blink::Image* image) |
notifyObservers(); |
} |
+void ImageResource::imageAnimationPolicy(const blink::Image* image, ImageAnimationPolicy& policy) |
+{ |
+ if (!image || image != m_image) |
+ return; |
+ |
+ ResourceClientWalker<ImageResourceClient> w(m_clients); |
+ while (ImageResourceClient* c = w.next()) { |
+ if (c->getImageAnimationPolicy(this, policy)) |
+ return; |
+ } |
+} |
+ |
void ImageResource::changedInRect(const blink::Image* image, const IntRect& rect) |
{ |
if (!image || image != m_image) |