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 "wtf/RefPtr.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 bool equals(const CSSVariableReferenceValue& other) const { | 22 bool equals(const CSSVariableReferenceValue& other) const { |
23 return m_data == other.m_data; | 23 return m_data == other.m_data; |
24 } | 24 } |
25 String customCSSText() const; | 25 String customCSSText() const; |
26 | 26 |
27 DECLARE_TRACE_AFTER_DISPATCH(); | 27 DECLARE_TRACE_AFTER_DISPATCH(); |
28 | 28 |
29 private: | 29 private: |
30 CSSVariableReferenceValue(PassRefPtr<CSSVariableData> data) | 30 CSSVariableReferenceValue(PassRefPtr<CSSVariableData> data) |
31 : CSSValue(VariableReferenceClass), m_data(data) {} | 31 : CSSValue(VariableReferenceClass), m_data(std::move(data)) {} |
32 | 32 |
33 RefPtr<CSSVariableData> m_data; | 33 RefPtr<CSSVariableData> m_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 |