| OLD | NEW |
| (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 |
| OLD | NEW |