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

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

Issue 178663007: Web Animations: Reduce duplication of Timing defaults. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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
« no previous file with comments | « Source/core/animation/TimedItemCalculationsTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/Timing.h
diff --git a/Source/core/animation/Timing.h b/Source/core/animation/Timing.h
index fb2ef0921f2734ae3e161425a2b8be825c6db7e0..e05ed24f056be21fe8d474bd316225232e514836 100644
--- a/Source/core/animation/Timing.h
+++ b/Source/core/animation/Timing.h
@@ -53,6 +53,12 @@ struct Timing {
PlaybackDirectionAlternateReverse
};
+ static const Timing& defaults()
+ {
+ DEFINE_STATIC_LOCAL(Timing, timing, ());
+ return timing;
+ }
+
Timing()
: startDelay(0)
, endDelay(0)
« no previous file with comments | « Source/core/animation/TimedItemCalculationsTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698