Index: Source/core/css/CSSComputedStyleDeclaration.cpp |
diff --git a/Source/core/css/CSSComputedStyleDeclaration.cpp b/Source/core/css/CSSComputedStyleDeclaration.cpp |
index 37ef5411c1276260eda79819bbcf5ce26747665b..62b3ed3d40f9e433222182a4f8a5c782c2ecef6d 100644 |
--- a/Source/core/css/CSSComputedStyleDeclaration.cpp |
+++ b/Source/core/css/CSSComputedStyleDeclaration.cpp |
@@ -1614,7 +1614,8 @@ PassRefPtr<RenderStyle> CSSComputedStyleDeclaration::computeRenderStyle(CSSPrope |
Node* styledNode = this->styledNode(); |
ASSERT(styledNode); |
RenderObject* renderer = styledNode->renderer(); |
- if (renderer && renderer->isComposited() && !RuntimeEnabledFeatures::webAnimationsCSSEnabled() && AnimationController::supportsAcceleratedAnimationOfProperty(propertyID)) { |
+ if (renderer && renderer->compositingState() == PaintsIntoOwnBacking |
+ && !RuntimeEnabledFeatures::webAnimationsCSSEnabled() && AnimationController::supportsAcceleratedAnimationOfProperty(propertyID)) { |
AnimationUpdateBlock animationUpdateBlock(renderer->animation()); |
if (m_pseudoElementSpecifier && !styledNode->isPseudoElement()) { |
// FIXME: This cached pseudo style will only exist if the animation has been run at least once. |