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

Unified Diff: Source/web/WebSettingsImpl.cpp

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/web/WebSettingsImpl.cpp
diff --git a/Source/web/WebSettingsImpl.cpp b/Source/web/WebSettingsImpl.cpp
index 512f266c001a2980a44b2d1fcf4573d9adea8eee..fe9147dbb660de802ee302fb4e1685e6a7f33a42 100644
--- a/Source/web/WebSettingsImpl.cpp
+++ b/Source/web/WebSettingsImpl.cpp
@@ -276,6 +276,11 @@ void WebSettingsImpl::setImagesEnabled(bool enabled)
m_settings->setImagesEnabled(enabled);
}
+void WebSettingsImpl::setAnimatedImageType(AnimatedImageType type)
+{
+ m_settings->setAnimatedImageType(static_cast<blink::AnimatedImageType>(type));
+}
+
void WebSettingsImpl::setLoadWithOverviewMode(bool enabled)
{
m_settings->setLoadWithOverviewMode(enabled);

Powered by Google App Engine
This is Rietveld 408576698