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

Unified Diff: third_party/WebKit/Source/core/css/CSSTimingFunctionValue.h

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/CSSTimingFunctionValue.h
diff --git a/third_party/WebKit/Source/core/css/CSSTimingFunctionValue.h b/third_party/WebKit/Source/core/css/CSSTimingFunctionValue.h
index 408b5fb3b3c567558fd37a64f3d559f678721186..a0af8021595a8ad1380f765791140f4ac575b63a 100644
--- a/third_party/WebKit/Source/core/css/CSSTimingFunctionValue.h
+++ b/third_party/WebKit/Source/core/css/CSSTimingFunctionValue.h
@@ -106,6 +106,32 @@ class CSSStepsTimingFunctionValue : public CSSValue {
DEFINE_CSS_VALUE_TYPE_CASTS(CSSStepsTimingFunctionValue,
isStepsTimingFunctionValue());
+class CSSFramesTimingFunctionValue : public CSSValue {
+ public:
+ static CSSFramesTimingFunctionValue* create(int frames) {
+ return new CSSFramesTimingFunctionValue(frames);
+ }
+
+ int numberOfFrames() const { return m_frames; }
+
+ String customCSSText() const;
+
+ bool equals(const CSSFramesTimingFunctionValue&) const;
+
+ DEFINE_INLINE_TRACE_AFTER_DISPATCH() {
+ CSSValue::traceAfterDispatch(visitor);
+ }
+
+ private:
+ CSSFramesTimingFunctionValue(int frames)
+ : CSSValue(FramesTimingFunctionClass), m_frames(frames) {}
+
+ int m_frames;
+};
+
+DEFINE_CSS_VALUE_TYPE_CASTS(CSSFramesTimingFunctionValue,
+ isFramesTimingFunctionValue());
+
} // namespace blink
#endif

Powered by Google App Engine
This is Rietveld 408576698