Index: third_party/WebKit/Source/core/animation/Animation.cpp |
diff --git a/third_party/WebKit/Source/core/animation/Animation.cpp b/third_party/WebKit/Source/core/animation/Animation.cpp |
index 9cd519a2ba74efde365c05016741d943b2612823..eb9f17f7e424c6d103d804908e7918762eae7999 100644 |
--- a/third_party/WebKit/Source/core/animation/Animation.cpp |
+++ b/third_party/WebKit/Source/core/animation/Animation.cpp |
@@ -949,14 +949,13 @@ void Animation::attachCompositedLayers() |
ASSERT(m_content); |
ASSERT(m_content->isKeyframeEffect()); |
- if (toKeyframeEffect(m_content.get())->canAttachCompositedLayers()) |
- toKeyframeEffect(m_content.get())->attachCompositedLayers(); |
+ toKeyframeEffect(m_content.get())->attachCompositedLayers(); |
} |
void Animation::detachCompositedLayers() |
{ |
- if (m_compositorPlayer && m_compositorPlayer->isLayerAttached()) |
- m_compositorPlayer->detachLayer(); |
+ if (m_compositorPlayer && m_compositorPlayer->isElementAttached()) |
+ m_compositorPlayer->detachElement(); |
} |
void Animation::notifyAnimationStarted(double monotonicTime, int group) |