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

Unified Diff: third_party/WebKit/Source/core/css/CSSTimingFunctionValue.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/CSSTimingFunctionValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSTimingFunctionValue.cpp b/third_party/WebKit/Source/core/css/CSSTimingFunctionValue.cpp
index 5bd6c7d8073d4a00dd66449511f31ae47b476163..b1e3d6c04b27eca7fde4012131006cc63f85507b 100644
--- a/third_party/WebKit/Source/core/css/CSSTimingFunctionValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSTimingFunctionValue.cpp
@@ -61,4 +61,13 @@ bool CSSStepsTimingFunctionValue::Equals(
return steps_ == other.steps_ && step_position_ == other.step_position_;
}
+String CSSFramesTimingFunctionValue::CustomCSSText() const {
+ return "frames(" + String::Number(frames_) + ")";
+}
+
+bool CSSFramesTimingFunctionValue::Equals(
+ const CSSFramesTimingFunctionValue& other) const {
+ return frames_ == other.frames_;
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSTimingFunctionValue.h ('k') | third_party/WebKit/Source/core/css/CSSValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698