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

Unified Diff: Source/core/animation/ElementAnimations.cpp

Issue 1120003002: [Oilpan] Migrate most classes under core/animations to Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Build fix Created 5 years, 8 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: Source/core/animation/ElementAnimations.cpp
diff --git a/Source/core/animation/ElementAnimations.cpp b/Source/core/animation/ElementAnimations.cpp
index f12a4c8c8376c1fb15f6c0ced36e7384a43b4d56..34ae5192ad0d873bcefd7f9d887d81ca59e97724 100644
--- a/Source/core/animation/ElementAnimations.cpp
+++ b/Source/core/animation/ElementAnimations.cpp
@@ -42,11 +42,6 @@ ElementAnimations::ElementAnimations()
ElementAnimations::~ElementAnimations()
{
-#if !ENABLE(OILPAN)
- for (Animation* animation : m_animations)
- animation->notifyElementDestroyed();
haraken 2015/05/08 00:13:06 Ditto.
peria 2015/05/08 02:21:20 Acknowledged.
- m_animations.clear();
-#endif
}
void ElementAnimations::updateAnimationFlags(ComputedStyle& style)
@@ -83,19 +78,15 @@ void ElementAnimations::restartAnimationOnCompositor()
DEFINE_TRACE(ElementAnimations)
{
-#if ENABLE(OILPAN)
visitor->trace(m_cssAnimations);
visitor->trace(m_defaultStack);
+#if ENABLE(OILPAN)
visitor->trace(m_players);
#endif
}
const ComputedStyle* ElementAnimations::baseComputedStyle() const
{
-#if !ENABLE(ASSERT)
- if (isAnimationStyleChange())
- return m_baseComputedStyle.get();
-#endif
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698