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

Unified Diff: Source/core/animation/ActiveAnimations.h

Issue 265793017: Oilpan: move node/element rare data objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased + EventHandler.cpp oilpan compile fix Created 6 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
« no previous file with comments | « no previous file | Source/core/animation/ActiveAnimations.cpp » ('j') | Source/core/dom/Element.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/ActiveAnimations.h
diff --git a/Source/core/animation/ActiveAnimations.h b/Source/core/animation/ActiveAnimations.h
index 1a4c0a0bb119a4b2f93e11c8cf203ba90549652f..5f16f8a1d481c583dad754b705e0cd2fdf8e41f6 100644
--- a/Source/core/animation/ActiveAnimations.h
+++ b/Source/core/animation/ActiveAnimations.h
@@ -53,7 +53,6 @@ public:
}
~ActiveAnimations();
- void dispose();
// Animations that are currently active for this element, their effects will be applied
// during a style recalc. CSS Transitions are included in this stack.
@@ -94,6 +93,14 @@ private:
// won't be needed once Element and Animation are moved to Oilpan.
Vector<Animation*> m_animations;
+#if ENABLE(OILPAN)
+ // Keep a back reference to the target Element, so that we know
+ // that when this object is finalized, the Element will be dead
+ // too (=> disposing of the above Animations can be done
+ // correctly from our finalizer.)
+ Member<Element> m_target;
haraken 2014/05/04 01:46:24 I don't fully understand why we need to add m_targ
sof 2014/05/04 18:59:22 With it, you'll be able to accurately notify the A
+#endif
+
// CSSAnimations checks if a style change is due to animation.
friend class CSSAnimations;
};
« no previous file with comments | « no previous file | Source/core/animation/ActiveAnimations.cpp » ('j') | Source/core/dom/Element.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698