| 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 CSSVariableReferenceValue_h | 5 #ifndef CSSVariableReferenceValue_h |
| 6 #define CSSVariableReferenceValue_h | 6 #define CSSVariableReferenceValue_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 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class CSSVariableReferenceValue : public CSSValue { | 14 class CSSVariableReferenceValue : public CSSValue { |
| 15 public: | 15 public: |
| 16 static CSSVariableReferenceValue* Create(PassRefPtr<CSSVariableData> data) { | 16 static CSSVariableReferenceValue* Create(PassRefPtr<CSSVariableData> data) { |
| 17 return new CSSVariableReferenceValue(std::move(data)); | 17 return new CSSVariableReferenceValue(std::move(data)); |
| 18 } | 18 } |
| 19 | 19 |
| 20 CSSVariableData* VariableDataValue() const { return data_.Get(); } | 20 CSSVariableData* VariableDataValue() const { return data_.Get(); } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 RefPtr<CSSVariableData> data_; | 33 RefPtr<CSSVariableData> data_; |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 DEFINE_CSS_VALUE_TYPE_CASTS(CSSVariableReferenceValue, | 36 DEFINE_CSS_VALUE_TYPE_CASTS(CSSVariableReferenceValue, |
| 37 IsVariableReferenceValue()); | 37 IsVariableReferenceValue()); |
| 38 | 38 |
| 39 } // namespace blink | 39 } // namespace blink |
| 40 | 40 |
| 41 #endif // CSSVariableReferenceValue_h | 41 #endif // CSSVariableReferenceValue_h |
| OLD | NEW |