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

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

Issue 1322883003: Oilpan: KeyframeEffect::m_target shouldn't become stale (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | « Source/core/animation/ElementAnimations.cpp ('k') | Source/core/dom/ElementRareData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/KeyframeEffect.cpp
diff --git a/Source/core/animation/KeyframeEffect.cpp b/Source/core/animation/KeyframeEffect.cpp
index 03310455be291858237c65467136a89da82e525a..484b8cbd3c92ce0650f822aaf1d8aec0aa646734 100644
--- a/Source/core/animation/KeyframeEffect.cpp
+++ b/Source/core/animation/KeyframeEffect.cpp
@@ -83,6 +83,10 @@ KeyframeEffect::KeyframeEffect(Element* target, EffectModel* model, const Timing
, m_sampledEffect(nullptr)
, m_priority(priority)
{
+#if !ENABLE(OILPAN)
+ if (m_target)
+ m_target->ensureElementAnimations().addEffect(this);
+#endif
}
KeyframeEffect::~KeyframeEffect()
« no previous file with comments | « Source/core/animation/ElementAnimations.cpp ('k') | Source/core/dom/ElementRareData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698