| Index: Source/core/page/animation/KeyframeAnimation.cpp
|
| diff --git a/Source/core/page/animation/KeyframeAnimation.cpp b/Source/core/page/animation/KeyframeAnimation.cpp
|
| index bba986274c01c77b823ff6361424ec35be789555..8351ef4393bd6086ef63fb5a730a953559b663eb 100644
|
| --- a/Source/core/page/animation/KeyframeAnimation.cpp
|
| +++ b/Source/core/page/animation/KeyframeAnimation.cpp
|
| @@ -239,7 +239,7 @@ bool KeyframeAnimation::hasAnimationForProperty(CSSPropertyID property) const
|
|
|
| bool KeyframeAnimation::startAnimation(double timeOffset)
|
| {
|
| - if (m_object && m_object->isComposited()) {
|
| + if (m_object && m_object->compositingState() == PaintsIntoOwnBacking) {
|
| return toRenderBoxModelObject(m_object)->startAnimation(timeOffset, m_animation.get(), m_keyframes);
|
| }
|
| return false;
|
| @@ -250,7 +250,7 @@ void KeyframeAnimation::pauseAnimation(double timeOffset)
|
| if (!m_object)
|
| return;
|
|
|
| - if (m_object->isComposited())
|
| + if (m_object->compositingState() == PaintsIntoOwnBacking)
|
| toRenderBoxModelObject(m_object)->animationPaused(timeOffset, m_keyframes.animationName());
|
|
|
| // Restore the original (unanimated) style
|
| @@ -263,7 +263,7 @@ void KeyframeAnimation::endAnimation()
|
| if (!m_object)
|
| return;
|
|
|
| - if (m_object->isComposited())
|
| + if (m_object->compositingState() == PaintsIntoOwnBacking)
|
| toRenderBoxModelObject(m_object)->animationFinished(m_keyframes.animationName());
|
|
|
| // Restore the original (unanimated) style
|
|
|