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

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

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.h
diff --git a/Source/core/animation/TimedItem.h b/Source/core/animation/TimedItem.h
index eac8859eda843886fec05c1c6fb95357da53db9f..aa2ab267efee3210faef2e29f09aae1df26ffef6 100644
--- a/Source/core/animation/TimedItem.h
+++ b/Source/core/animation/TimedItem.h
@@ -92,10 +92,12 @@ protected:
// When TimedItem receives a new inherited time via updateInheritedTime
// it will (if necessary) recalculate timings and (if necessary) call
// updateChildrenAndEffects.
- void updateInheritedTime(double inheritedTime) const;
+ // Returns whether style recalc was triggered.
+ bool updateInheritedTime(double inheritedTime) const;
private:
- virtual void updateChildrenAndEffects() const = 0;
+ // Returns whether style recalc was triggered.
+ virtual bool updateChildrenAndEffects() const = 0;
virtual double intrinsicIterationDuration() const { return 0; };
virtual void willDetach() = 0;
virtual double calculateTimeToEffectChange(double inheritedTime, double activeTime, Phase) const = 0;

Powered by Google App Engine
This is Rietveld 408576698