Index: Source/core/animation/ElementAnimations.cpp |
diff --git a/Source/core/animation/ElementAnimations.cpp b/Source/core/animation/ElementAnimations.cpp |
index 86bee848ef2f11d7dbad838d16f62034caf42ed1..5e6b747d040d588fa939fd1ffe8b02373923c7ed 100644 |
--- a/Source/core/animation/ElementAnimations.cpp |
+++ b/Source/core/animation/ElementAnimations.cpp |
@@ -42,6 +42,10 @@ ElementAnimations::ElementAnimations() |
ElementAnimations::~ElementAnimations() |
{ |
+} |
+ |
+void ElementAnimations::dispose() |
+{ |
#if !ENABLE(OILPAN) |
for (KeyframeEffect* effect : m_effects) |
effect->notifyElementDestroyed(); |
@@ -83,11 +87,14 @@ void ElementAnimations::restartAnimationOnCompositor() |
DEFINE_TRACE(ElementAnimations) |
{ |
-#if ENABLE(OILPAN) |
visitor->trace(m_cssAnimations); |
visitor->trace(m_defaultStack); |
+#if ENABLE(OILPAN) |
visitor->trace(m_animations); |
#endif |
+#if !ENABLE(OILPAN) |
+ visitor->trace(m_effects); |
+#endif |
} |
const ComputedStyle* ElementAnimations::baseComputedStyle() const |