Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Unified Diff: Source/core/fetch/ImageResourceClient.h

Issue 754813002: Expose setting API to set ImageAnimationPolicy(Allowed, Once, None) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update with fix layout test fail Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/fetch/ImageResourceClient.h
diff --git a/Source/core/fetch/ImageResourceClient.h b/Source/core/fetch/ImageResourceClient.h
index b1ce27fdbb4c99ae394b4b97d7d25946702ed0db..62df45338d476af40dd5de7888531a6a8a3ddf7b 100644
--- a/Source/core/fetch/ImageResourceClient.h
+++ b/Source/core/fetch/ImageResourceClient.h
@@ -24,6 +24,7 @@
#define ImageResourceClient_h
#include "core/fetch/ResourceClient.h"
+#include "platform/graphics/ImageAnimationPolicy.h"
namespace blink {
@@ -45,6 +46,9 @@ public:
// but RenderImages would (assuming they have visibility: visible and their render tree isn't hidden
// e.g., in the b/f cache or in a background tab).
virtual bool willRenderImage(ImageResource*) { return false; }
+
+ // Called to get imageAnimation policy from settings
+ virtual bool getImageAnimationPolicy(ImageResource*, ImageAnimationPolicy&) { return false; }
};
}

Powered by Google App Engine
This is Rietveld 408576698