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

Unified Diff: Source/core/layout/LayoutObject.cpp

Issue 1147183003: Restore not-unused LayoutObject::getImageAnimationPolicy (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 months 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
« no previous file with comments | « Source/core/layout/LayoutObject.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutObject.cpp
diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp
index 663740b5624c4253e44e4d4f68b20f700f1ad9c0..839e8367f84f8bc5fc568d6f90ee0c7907897c1d 100644
--- a/Source/core/layout/LayoutObject.cpp
+++ b/Source/core/layout/LayoutObject.cpp
@@ -2912,6 +2912,14 @@ bool LayoutObject::willRenderImage(ImageResource*)
return document().view()->isVisible();
}
+bool LayoutObject::getImageAnimationPolicy(ImageResource*, ImageAnimationPolicy& policy)
+{
+ if (!document().settings())
+ return false;
+ policy = document().settings()->imageAnimationPolicy();
+ return true;
+}
+
int LayoutObject::caretMinOffset() const
{
return 0;
« no previous file with comments | « Source/core/layout/LayoutObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698