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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSVariableReferenceValue.h

Issue 2761693002: Wrapped PassRefPtrs in move where passed to RefPtr constructor. (Closed)
Patch Set: Added move wraps for multiple instances in 1 line. Created 3 years, 9 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698