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

Unified Diff: Source/platform/graphics/BitmapImage.cpp

Issue 892783003: Check the condition for animation policy of bitmapImage on notifyFinished. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Move updating policy to ImageLoader Created 5 years, 11 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/platform/graphics/BitmapImage.h ('k') | Source/platform/graphics/BitmapImageTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/BitmapImage.cpp
diff --git a/Source/platform/graphics/BitmapImage.cpp b/Source/platform/graphics/BitmapImage.cpp
index 3e617c0462d3adb566d903b882f4f531f6d43119..74a69778c19efa716f4ab7dd6d08ac4a117b6fc3 100644
--- a/Source/platform/graphics/BitmapImage.cpp
+++ b/Source/platform/graphics/BitmapImage.cpp
@@ -437,14 +437,8 @@ int BitmapImage::repetitionCount(bool imageKnownToBeComplete)
bool BitmapImage::shouldAnimate()
{
bool animated = repetitionCount(false) != cAnimationNone && !m_animationFinished && imageObserver();
- if (imageObserver()) {
- ImageAnimationPolicy oldPolicy = m_animationPolicy;
- imageObserver()->imageAnimationPolicy(this, m_animationPolicy);
- if (oldPolicy != m_animationPolicy)
- resetAnimation();
- if (animated && m_animationPolicy == ImageAnimationPolicyNoAnimation)
- animated = false;
- }
+ if (animated && m_animationPolicy == ImageAnimationPolicyNoAnimation)
+ animated = false;
return animated;
}
« no previous file with comments | « Source/platform/graphics/BitmapImage.h ('k') | Source/platform/graphics/BitmapImageTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698