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

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

Issue 46043014: Web Animations CSS: Unfreeze AnimationClock if sampling timelines does not trigger style recalc (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reinstate assert Created 7 years, 1 month 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/TimedItem.cpp
diff --git a/Source/core/animation/TimedItem.cpp b/Source/core/animation/TimedItem.cpp
index 4be5749e786e97d1ef79ce4a091f84a36e1a64b0..5c630d5561b19e64bee338e320b67555e0aa905a 100644
--- a/Source/core/animation/TimedItem.cpp
+++ b/Source/core/animation/TimedItem.cpp
@@ -46,7 +46,7 @@ TimedItem::TimedItem(const Timing& timing, PassOwnPtr<EventDelegate> eventDelega
timing.assertValid();
}
-void TimedItem::updateInheritedTime(double inheritedTime) const
+bool TimedItem::updateInheritedTime(double inheritedTime) const
{
const double localTime = inheritedTime - m_startTime;
const double iterationDuration = m_specified.hasIterationDuration
@@ -106,9 +106,10 @@ void TimedItem::updateInheritedTime(double inheritedTime) const
m_isFirstSample = false;
// FIXME: This probably shouldn't be recursive.
- updateChildrenAndEffects();
+ bool didTriggerStyleRecalc = updateChildrenAndEffects();
m_calculated.timeToEffectChange = calculateTimeToEffectChange(localTime, m_startTime + m_specified.startDelay, m_calculated.phase);
+ return didTriggerStyleRecalc;
}
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698