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

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

Issue 1054823002: Unregister AnimationPlayer from ActiveDOMObjects on timeline deletion. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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/AnimationPlayer.cpp
diff --git a/Source/core/animation/AnimationPlayer.cpp b/Source/core/animation/AnimationPlayer.cpp
index 30c585ede03a36c0ed1fe710c3e0f3d292e717ae..d4ab95818633143d4272cd91a17c128be193d262 100644
--- a/Source/core/animation/AnimationPlayer.cpp
+++ b/Source/core/animation/AnimationPlayer.cpp
@@ -712,6 +712,8 @@ void AnimationPlayer::setCompositorPending(bool sourceChanged)
|| !playing() || m_compositorState->playbackRate != m_playbackRate
|| m_compositorState->startTime != m_startTime) {
m_compositorPending = true;
+ ASSERT(timeline());
+ ASSERT(timeline()->document());
timeline()->document()->compositorPendingAnimations().add(this);
}
}
« no previous file with comments | « no previous file | Source/core/animation/AnimationTimeline.cpp » ('j') | Source/core/animation/AnimationTimeline.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698