Index: Source/core/loader/ImageLoader.cpp |
diff --git a/Source/core/loader/ImageLoader.cpp b/Source/core/loader/ImageLoader.cpp |
index 8e1adb8b22220c11f5fdf34f0fcf5e54bd36932e..73d71be96e057ee2fa5790577bfb15dda37c077c 100644 |
--- a/Source/core/loader/ImageLoader.cpp |
+++ b/Source/core/loader/ImageLoader.cpp |
@@ -33,6 +33,7 @@ |
#include "core/fetch/MemoryCache.h" |
#include "core/fetch/ResourceFetcher.h" |
#include "core/frame/LocalFrame.h" |
+#include "core/frame/Settings.h" |
#include "core/frame/UseCounter.h" |
#include "core/html/HTMLImageElement.h" |
#include "core/html/parser/HTMLParserIdioms.h" |
@@ -591,6 +592,15 @@ void ImageLoader::removeClient(ImageLoaderClient* client) |
m_clients.remove(client); |
} |
+bool ImageLoader::getImageAnimationPolicy(ImageResource*, ImageAnimationPolicy& policy) |
+{ |
+ if (!element()->document().settings()) |
+ return false; |
+ |
+ policy = element()->document().settings()->imageAnimationPolicy(); |
+ return true; |
+} |
+ |
void ImageLoader::dispatchPendingLoadEvents() |
{ |
loadEventSender().dispatchPendingEvents(); |