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

Unified Diff: third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp

Issue 2775143002: Implement frames() timing function (Closed)
Patch Set: Created 3 years, 9 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: third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp b/third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp
index d6fb1f6a3b19e74fa60a938368299c0dcb0d9a46..2b09d81c79e227fd8496bb5e116aad1f9501b555 100644
--- a/third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/CSSToStyleMap.cpp
@@ -458,6 +458,12 @@ PassRefPtr<TimingFunction> CSSToStyleMap::mapAnimationTimingFunction(
if (value.isInitialValue())
return CSSTimingData::initialTimingFunction();
+ if (value.isFramesTimingFunctionValue()) {
+ const CSSFramesTimingFunctionValue& framesTimingFunction =
+ toCSSFramesTimingFunctionValue(value);
+ return FramesTimingFunction::create(framesTimingFunction.numberOfFrames());
+ }
+
const CSSStepsTimingFunctionValue& stepsTimingFunction =
toCSSStepsTimingFunctionValue(value);
if (stepsTimingFunction.getStepPosition() ==

Powered by Google App Engine
This is Rietveld 408576698