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

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

Issue 110123005: Web Animations CSS: Record if style recalc is for animation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Ignore new interrupted immediately test when testing legacy animations engine Created 7 years 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/ActiveAnimations.h ('k') | Source/core/animation/css/CSSAnimations.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/Animation.cpp
diff --git a/Source/core/animation/Animation.cpp b/Source/core/animation/Animation.cpp
index bc18d7e0e9c9387edb6bd323c66be8efd146cb49..102bfae9586c3ab8d2f57bdc03252348924a6c0b 100644
--- a/Source/core/animation/Animation.cpp
+++ b/Source/core/animation/Animation.cpp
@@ -88,7 +88,7 @@ bool Animation::applyEffects(bool previouslyInEffect)
// FIXME: Handle iteration values which overflow int.
m_compositableValues = m_effect->sample(static_cast<int>(iteration), timeFraction());
if (player()) {
- m_target->setNeedsStyleRecalc(LocalStyleChange, StyleChangeFromRenderer);
+ m_target->setNeedsAnimationStyleRecalc();
return true;
}
return false;
@@ -102,7 +102,7 @@ void Animation::clearEffects()
cancelAnimationOnCompositor();
m_activeInAnimationStack = false;
m_compositableValues.clear();
- m_target->setNeedsStyleRecalc(LocalStyleChange, StyleChangeFromRenderer);
+ m_target->setNeedsAnimationStyleRecalc();
}
bool Animation::updateChildrenAndEffects() const
« no previous file with comments | « Source/core/animation/ActiveAnimations.h ('k') | Source/core/animation/css/CSSAnimations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698