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

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

Issue 23173007: Web Animations: Fix CSS events to handle animations with very short durations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 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
Index: Source/core/animation/TimedItem.h
diff --git a/Source/core/animation/TimedItem.h b/Source/core/animation/TimedItem.h
index 93b79a7fc7b9503257f36bbed398dab0249c2b72..0aae5cad13eefe257434bcfe0fa133569b004761 100644
--- a/Source/core/animation/TimedItem.h
+++ b/Source/core/animation/TimedItem.h
@@ -52,7 +52,7 @@ static inline double nullValue()
class TimedItemEventDelegate {
public:
virtual ~TimedItemEventDelegate() { };
- virtual void onEventCondition(bool wasInPlay, bool isInPlay, double previousIteration, double currentIteration) = 0;
+ virtual void onEventCondition(bool wasInPlay, bool isInPlay, bool wasCurrent, bool isCurrent, double previousIteration, double currentIteration) = 0;
};
class TimedItem : public RefCounted<TimedItem> {
@@ -107,7 +107,6 @@ private:
// FIXME: Should be versioned by monotonic value on player.
mutable struct CalculatedTiming {
- CalculatedTiming();
double activeDuration;
double currentIteration;
double timeFraction;
@@ -115,6 +114,7 @@ private:
bool isInEffect;
bool isInPlay;
} m_calculated;
+ mutable bool m_isFirstSample;
// FIXME: Should check the version and reinherit time if inconsistent.
const CalculatedTiming& ensureCalculated() const { return m_calculated; }

Powered by Google App Engine
This is Rietveld 408576698