Index: third_party/WebKit/Source/core/animation/ElementAnimations.cpp |
diff --git a/third_party/WebKit/Source/core/animation/ElementAnimations.cpp b/third_party/WebKit/Source/core/animation/ElementAnimations.cpp |
index baac68c92ec8479e5b605ba41b71fbbfcdb520e4..a3d309d024649b5aa876301d2cc4cb1dcbdf5325 100644 |
--- a/third_party/WebKit/Source/core/animation/ElementAnimations.cpp |
+++ b/third_party/WebKit/Source/core/animation/ElementAnimations.cpp |
@@ -41,8 +41,9 @@ void ElementAnimations::updateAnimationFlags(ComputedStyle& style) { |
const Animation& animation = *entry.key; |
DCHECK(animation.effect()); |
// FIXME: Needs to consider AnimationGroup once added. |
- DCHECK(animation.effect()->isKeyframeEffect()); |
- const KeyframeEffect& effect = *toKeyframeEffect(animation.effect()); |
+ DCHECK(animation.effect()->isKeyframeEffectReadOnly()); |
+ const KeyframeEffectReadOnly& effect = |
+ *toKeyframeEffectReadOnly(animation.effect()); |
if (effect.isCurrent()) { |
if (effect.affects(PropertyHandle(CSSPropertyOpacity))) |
style.setHasCurrentOpacityAnimation(true); |