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; |
} |