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

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

Issue 2881673003: CSS Motion Path: Support parsing of ray(<angle>) paths (Closed)
Patch Set: DCHECK_EQ 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..0fbcbe097f2ba3689e6b5bcc59dba4e2524d5d9e
--- /dev/null
+++ b/third_party/WebKit/Source/core/css/CSSRayValue.h
@@ -0,0 +1,45 @@
+// 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 CSSRayValue : public CSSValue {
+ public:
+ static CSSRayValue* Create(const CSSPrimitiveValue& angle,
+ const CSSIdentifierValue& size,
+ const CSSIdentifierValue* contain);
+
+ const CSSPrimitiveValue& Angle() const { return *angle_; }
+ const CSSIdentifierValue& Size() const { return *size_; }
+ const CSSIdentifierValue* Contain() const { return contain_.Get(); }
+
+ String CustomCSSText() const;
+
+ bool Equals(const CSSRayValue&) const;
+
+ DECLARE_TRACE_AFTER_DISPATCH();
+
+ private:
+ CSSRayValue(const CSSPrimitiveValue& angle,
+ const CSSIdentifierValue& size,
+ const CSSIdentifierValue* contain);
+
+ 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