Index: Source/core/frame/animation/AnimationBase.cpp |
diff --git a/Source/core/frame/animation/AnimationBase.cpp b/Source/core/frame/animation/AnimationBase.cpp |
index 5cbd4aaf9685a8ed658dc8367c348c84a86ffa5b..4e3356c7fa1bfefb692b4be96160b5ac61d83293 100644 |
--- a/Source/core/frame/animation/AnimationBase.cpp |
+++ b/Source/core/frame/animation/AnimationBase.cpp |
@@ -555,9 +555,8 @@ void AnimationBase::freezeAtTime(double t) |
else |
m_pauseTime = m_startTime + t - m_animation->delay(); |
- // It is possible that m_isAccelerated is true and m_object->compositingState() is NotComposited, because of style change. |
- // So, both conditions need to be checked. |
- if (m_object && m_object->compositingState() == PaintsIntoOwnBacking && isAccelerated()) |
+ // It is possible that m_isAccelerated is true and m_object->isComposited() is false, because of style change. |
+ if (m_object && m_object->isComposited() && isAccelerated()) |
toRenderBoxModelObject(m_object)->suspendAnimations(m_pauseTime); |
} |