Index: Source/core/animation/ElementAnimation.h |
diff --git a/Source/core/animation/ElementAnimation.h b/Source/core/animation/ElementAnimation.h |
index 63bef0af56830929d920f21163a1e58c67b4952c..a083423cedf912cfaf68eb91ac648edb3dbdf1e4 100644 |
--- a/Source/core/animation/ElementAnimation.h |
+++ b/Source/core/animation/ElementAnimation.h |
@@ -91,7 +91,11 @@ public: |
static WillBeHeapVector<RefPtrWillBeMember<AnimationPlayer> > getAnimationPlayers(Element& element) |
{ |
- WillBeHeapVector<RefPtrWillBeMember<AnimationPlayer> > animationPlayers = WillBeHeapVector<RefPtrWillBeMember<AnimationPlayer> >(); |
+ WillBeHeapVector<RefPtrWillBeMember<AnimationPlayer> > animationPlayers; |
+ |
+ if (!element.hasActiveAnimations()) |
+ return animationPlayers; |
+ |
const AnimationPlayerCountedSet& players = element.activeAnimations()->players(); |
for (AnimationPlayerCountedSet::const_iterator it = players.begin(); it != players.end(); ++it) { |