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

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

Issue 2881673003: CSS Motion Path: Support parsing of ray(<angle>) paths (Closed)
Patch Set: size contain? Created 3 years, 7 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/CSSRayValue.h
diff --git a/third_party/WebKit/Source/core/css/CSSRayValue.h b/third_party/WebKit/Source/core/css/CSSRayValue.h
new file mode 100644
index 0000000000000000000000000000000000000000..c1f079bf6d20fbd189d05f325ca8ad2c942e001e
--- /dev/null
+++ b/third_party/WebKit/Source/core/css/CSSRayValue.h
@@ -0,0 +1,42 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CSSRayValue_h
+#define CSSRayValue_h
+
+#include "core/css/CSSValue.h"
+
+namespace blink {
+
+class CSSIdentifierValue;
+class CSSPrimitiveValue;
+class CSSValueList;
+
+class CSSRayValue : public CSSValue {
+ public:
+ static CSSRayValue* Create(CSSValueList*);
fs 2017/05/15 09:18:14 Nit: const CSSValueList& ?
Eric Willigers 2017/05/15 10:52:23 Required arguments now passed by reference.
+
+ const CSSPrimitiveValue* Angle() const { return angle_.Get(); }
+ const CSSIdentifierValue* Size() const { return size_.Get(); }
fs 2017/05/15 09:18:14 Nit: Maybe the two that are not supposed to (canno
Eric Willigers 2017/05/15 10:52:23 Done.
+ const CSSIdentifierValue* Contain() const { return contain_.Get(); }
+
+ String CustomCSSText() const;
+
+ bool Equals(const CSSRayValue&) const;
+
+ DECLARE_TRACE_AFTER_DISPATCH();
+
+ private:
+ CSSRayValue(CSSValueList*);
+
+ Member<const CSSPrimitiveValue> angle_;
+ Member<const CSSIdentifierValue> size_;
+ Member<const CSSIdentifierValue> contain_;
+};
+
+DEFINE_CSS_VALUE_TYPE_CASTS(CSSRayValue, IsRayValue());
+
+} // namespace blink
+
+#endif // CSSRayValue_h

Powered by Google App Engine
This is Rietveld 408576698