Index: third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp |
diff --git a/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp b/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp |
index 58abde39e0139fbef8d75db520e6ac09c5d213d4..99f94a3c3afcb13563631abc0a73ac5260bbe90a 100644 |
--- a/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp |
+++ b/third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp |
@@ -295,8 +295,10 @@ void CSSAnimations::calculateAnimationUpdate(CSSAnimationUpdate& update, const E |
timing.timingFunction = Timing::defaults().timingFunction; |
StyleRuleKeyframes* keyframesRule = resolver->findKeyframesRule(elementForScoping, name); |
- if (!keyframesRule) |
+ if (!keyframesRule) { |
+ element.document().timeline().setHasUnresolvedKeyframesRule(); |
continue; // Cancel the animation if there's no style rule for it. |
+ } |
const RunningAnimation* existingAnimation = nullptr; |
size_t existingAnimationIndex = 0; |