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

Unified Diff: Source/core/animation/css/CSSAnimations.cpp

Issue 1311683002: Clear m_previousActiveInterpolationsForAnimations in maybeApplyPendingUpdate() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/css/CSSAnimations.cpp
diff --git a/Source/core/animation/css/CSSAnimations.cpp b/Source/core/animation/css/CSSAnimations.cpp
index 4b03769599730f18e2275d527ec91b6e2291afa1..01f4714112018796394d88af969c21f47bde3019 100644
--- a/Source/core/animation/css/CSSAnimations.cpp
+++ b/Source/core/animation/css/CSSAnimations.cpp
@@ -297,10 +297,9 @@ void CSSAnimations::calculateAnimationUpdate(CSSAnimationUpdate& update, const E
void CSSAnimations::maybeApplyPendingUpdate(Element* element)
{
- if (m_pendingUpdate.isEmpty()) {
- m_previousActiveInterpolationsForAnimations.clear();
+ m_previousActiveInterpolationsForAnimations.clear();
+ if (m_pendingUpdate.isEmpty())
return;
- }
m_previousActiveInterpolationsForAnimations.swap(m_pendingUpdate.activeInterpolationsForAnimations());
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698