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

Unified Diff: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp

Issue 2775143002: Implement frames() timing function (Closed)
Patch Set: Fix behaviour outside input range [0,1] Created 3 years, 8 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/ComputedStyleCSSValueMapping.cpp
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
index 83acd1a5c01a01266b73167708923a60b4d4f087..1a90e93690eaa1f2cf74a792fdb7ed6559312343 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -1350,6 +1350,13 @@ static CSSValue* CreateTimingFunctionValue(
return CSSIdentifierValue::Create(value_id);
}
+ case TimingFunction::Type::FRAMES: {
+ const FramesTimingFunction* frames_timing_function =
+ ToFramesTimingFunction(timing_function);
+ int frames = frames_timing_function->NumberOfFrames();
+ return CSSFramesTimingFunctionValue::Create(frames);
+ }
+
default:
return CSSIdentifierValue::Create(CSSValueLinear);
}

Powered by Google App Engine
This is Rietveld 408576698