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

Unified Diff: Source/core/animation/Animation.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/Animation.h
diff --git a/Source/core/animation/Animation.h b/Source/core/animation/Animation.h
index 3401708ded92e371e34462b5937894b8e0f063f8..ea772ae55422e79b6ad7d1aae6c579dfd8a31b56 100644
--- a/Source/core/animation/Animation.h
+++ b/Source/core/animation/Animation.h
@@ -50,6 +50,10 @@ public:
return m_compositableValues.get();
}
+ // This is used by CSS to make sure events are fired on animations with
+ // zero start delay.
+ void forceSampleBeforeStartTime() { updateInheritedTime(startTime() - 1); }
+
protected:
virtual void applyEffects(bool previouslyInEffect);
virtual void clearEffects();

Powered by Google App Engine
This is Rietveld 408576698