Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Unified Diff: third_party/WebKit/Source/core/animation/Animation.cpp

Issue 1973083002: Use element id's for animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698