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

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: 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 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 class CSSValueList;
15
16 class CSSRayValue : public CSSValue {
17 public:
18 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.
19
20 const CSSPrimitiveValue* Angle() const { return angle_.Get(); }
21 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.
22 const CSSIdentifierValue* Contain() const { return contain_.Get(); }
23
24 String CustomCSSText() const;
25
26 bool Equals(const CSSRayValue&) const;
27
28 DECLARE_TRACE_AFTER_DISPATCH();
29
30 private:
31 CSSRayValue(CSSValueList*);
32
33 Member<const CSSPrimitiveValue> angle_;
34 Member<const CSSIdentifierValue> size_;
35 Member<const CSSIdentifierValue> contain_;
36 };
37
38 DEFINE_CSS_VALUE_TYPE_CASTS(CSSRayValue, IsRayValue());
39
40 } // namespace blink
41
42 #endif // CSSRayValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698