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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSCustomPropertyDeclaration.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 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 "wtf/RefPtr.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 m_value(nullptr), 52 m_value(nullptr),
53 m_valueId(id) { 53 m_valueId(id) {
54 ASSERT(id == CSSValueInherit || id == CSSValueInitial || 54 ASSERT(id == CSSValueInherit || id == CSSValueInitial ||
55 id == CSSValueUnset); 55 id == CSSValueUnset);
56 } 56 }
57 57
58 CSSCustomPropertyDeclaration(const AtomicString& name, 58 CSSCustomPropertyDeclaration(const AtomicString& name,
59 PassRefPtr<CSSVariableData> value) 59 PassRefPtr<CSSVariableData> value)
60 : CSSValue(CustomPropertyDeclarationClass), 60 : CSSValue(CustomPropertyDeclarationClass),
61 m_name(name), 61 m_name(name),
62 m_value(value), 62 m_value(std::move(value)),
63 m_valueId(CSSValueInvalid) {} 63 m_valueId(CSSValueInvalid) {}
64 64
65 const AtomicString m_name; 65 const AtomicString m_name;
66 RefPtr<CSSVariableData> m_value; 66 RefPtr<CSSVariableData> m_value;
67 CSSValueID m_valueId; 67 CSSValueID m_valueId;
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698