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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CSSRayValue_h
6 #define CSSRayValue_h
7
8 #include "core/css/CSSValue.h"
9
10 namespace blink {
11
12 class CSSIdentifierValue;
13 class CSSPrimitiveValue;
14
15 class CSSRayValue : public CSSValue {
16 public:
17 static CSSRayValue* Create(const CSSPrimitiveValue& angle,
18 const CSSIdentifierValue& size,
19 const CSSIdentifierValue* contain);
20
21 const CSSPrimitiveValue& Angle() const { return *angle_; }
22 const CSSIdentifierValue& Size() const { return *size_; }
23 const CSSIdentifierValue* Contain() const { return contain_.Get(); }
24
25 String CustomCSSText() const;
26
27 bool Equals(const CSSRayValue&) const;
28
29 DECLARE_TRACE_AFTER_DISPATCH();
30
31 private:
32 CSSRayValue(const CSSPrimitiveValue& angle,
33 const CSSIdentifierValue& size,
34 const CSSIdentifierValue* contain);
35
36 Member<const CSSPrimitiveValue> angle_;
37 Member<const CSSIdentifierValue> size_;
38 Member<const CSSIdentifierValue> contain_;
39 };
40
41 DEFINE_CSS_VALUE_TYPE_CASTS(CSSRayValue, IsRayValue());
42
43 } // namespace blink
44
45 #endif // CSSRayValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698