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

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: Support three options for animations 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..dc76bc80c6e4ea77dcc7bae2a5f1e56e20336c2c 100644
--- a/Source/core/fetch/ImageResourceClient.h
+++ b/Source/core/fetch/ImageResourceClient.h
@@ -44,7 +44,7 @@ public:
// can halt animation. Content nodes that hold image refs for example would not render the image,
// 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; }
+ virtual bool willRenderImage(ImageResource*, bool repeated = false) { return false; }
};
}

Powered by Google App Engine
This is Rietveld 408576698