| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CSSCustomPropertyDeclaration_h | 5 #ifndef CSSCustomPropertyDeclaration_h |
| 6 #define CSSCustomPropertyDeclaration_h | 6 #define CSSCustomPropertyDeclaration_h |
| 7 | 7 |
| 8 #include "core/css/CSSValue.h" | 8 #include "core/css/CSSValue.h" |
| 9 #include "core/css/CSSVariableData.h" | 9 #include "core/css/CSSVariableData.h" |
| 10 #include "wtf/RefPtr.h" | 10 #include "platform/wtf/RefPtr.h" |
| 11 #include "wtf/text/AtomicString.h" | 11 #include "platform/wtf/text/AtomicString.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class CSSCustomPropertyDeclaration : public CSSValue { | 15 class CSSCustomPropertyDeclaration : public CSSValue { |
| 16 public: | 16 public: |
| 17 static CSSCustomPropertyDeclaration* Create( | 17 static CSSCustomPropertyDeclaration* Create( |
| 18 const AtomicString& name, | 18 const AtomicString& name, |
| 19 PassRefPtr<CSSVariableData> value) { | 19 PassRefPtr<CSSVariableData> value) { |
| 20 return new CSSCustomPropertyDeclaration(name, std::move(value)); | 20 return new CSSCustomPropertyDeclaration(name, std::move(value)); |
| 21 } | 21 } |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 RefPtr<CSSVariableData> value_; | 66 RefPtr<CSSVariableData> value_; |
| 67 CSSValueID value_id_; | 67 CSSValueID value_id_; |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCustomPropertyDeclaration, | 70 DEFINE_CSS_VALUE_TYPE_CASTS(CSSCustomPropertyDeclaration, |
| 71 IsCustomPropertyDeclaration()); | 71 IsCustomPropertyDeclaration()); |
| 72 | 72 |
| 73 } // namespace blink | 73 } // namespace blink |
| 74 | 74 |
| 75 #endif // CSSCustomPropertyDeclaration_h | 75 #endif // CSSCustomPropertyDeclaration_h |
| OLD | NEW |