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

Side by Side Diff: third_party/WebKit/Source/core/style/StyleNonInheritedVariables.h

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 StyleNonInheritedVariables_h 5 #ifndef StyleNonInheritedVariables_h
6 #define StyleNonInheritedVariables_h 6 #define StyleNonInheritedVariables_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/Forward.h" 10 #include "wtf/Forward.h"
11 #include "wtf/HashMap.h" 11 #include "wtf/HashMap.h"
12 #include "wtf/text/AtomicStringHash.h" 12 #include "wtf/text/AtomicStringHash.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class StyleNonInheritedVariables { 16 class StyleNonInheritedVariables {
17 public: 17 public:
18 static std::unique_ptr<StyleNonInheritedVariables> create() { 18 static std::unique_ptr<StyleNonInheritedVariables> create() {
19 return wrapUnique(new StyleNonInheritedVariables); 19 return WTF::wrapUnique(new StyleNonInheritedVariables);
20 } 20 }
21 21
22 std::unique_ptr<StyleNonInheritedVariables> copy() { 22 std::unique_ptr<StyleNonInheritedVariables> copy() {
23 return wrapUnique(new StyleNonInheritedVariables(*this)); 23 return WTF::wrapUnique(new StyleNonInheritedVariables(*this));
24 } 24 }
25 25
26 bool operator==(const StyleNonInheritedVariables& other) const; 26 bool operator==(const StyleNonInheritedVariables& other) const;
27 bool operator!=(const StyleNonInheritedVariables& other) const { 27 bool operator!=(const StyleNonInheritedVariables& other) const {
28 return !(*this == other); 28 return !(*this == other);
29 } 29 }
30 30
31 void setVariable(const AtomicString& name, 31 void setVariable(const AtomicString& name,
32 PassRefPtr<CSSVariableData> value) { 32 PassRefPtr<CSSVariableData> value) {
33 m_data.set(name, std::move(value)); 33 m_data.set(name, std::move(value));
(...skipping 12 matching lines...) Expand all
46 46
47 friend class CSSVariableResolver; 47 friend class CSSVariableResolver;
48 48
49 HashMap<AtomicString, RefPtr<CSSVariableData>> m_data; 49 HashMap<AtomicString, RefPtr<CSSVariableData>> m_data;
50 HashMap<AtomicString, Persistent<CSSValue>> m_registeredData; 50 HashMap<AtomicString, Persistent<CSSValue>> m_registeredData;
51 }; 51 };
52 52
53 } // namespace blink 53 } // namespace blink
54 54
55 #endif // StyleNonInheritedVariables_h 55 #endif // StyleNonInheritedVariables_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/DataPersistent.h ('k') | third_party/WebKit/Source/core/style/StylePath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698