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

Side by Side Diff: third_party/WebKit/Source/core/dom/CompositorProxiedPropertySet.cpp

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 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 #include "core/dom/CompositorProxiedPropertySet.h" 5 #include "core/dom/CompositorProxiedPropertySet.h"
6 6
7 #include "wtf/PtrUtil.h" 7 #include "wtf/PtrUtil.h"
8 #include <memory> 8 #include <memory>
9 9
10 namespace blink { 10 namespace blink {
11 11
12 std::unique_ptr<CompositorProxiedPropertySet> 12 std::unique_ptr<CompositorProxiedPropertySet>
13 CompositorProxiedPropertySet::create() { 13 CompositorProxiedPropertySet::create() {
14 return wrapUnique(new CompositorProxiedPropertySet); 14 return WTF::wrapUnique(new CompositorProxiedPropertySet);
15 } 15 }
16 16
17 CompositorProxiedPropertySet::CompositorProxiedPropertySet() { 17 CompositorProxiedPropertySet::CompositorProxiedPropertySet() {
18 memset(m_counts, 0, sizeof(m_counts)); 18 memset(m_counts, 0, sizeof(m_counts));
19 } 19 }
20 20
21 CompositorProxiedPropertySet::~CompositorProxiedPropertySet() {} 21 CompositorProxiedPropertySet::~CompositorProxiedPropertySet() {}
22 22
23 bool CompositorProxiedPropertySet::isEmpty() const { 23 bool CompositorProxiedPropertySet::isEmpty() const {
24 return !proxiedProperties(); 24 return !proxiedProperties();
(...skipping 18 matching lines...) Expand all
43 uint32_t CompositorProxiedPropertySet::proxiedProperties() const { 43 uint32_t CompositorProxiedPropertySet::proxiedProperties() const {
44 uint32_t properties = CompositorMutableProperty::kNone; 44 uint32_t properties = CompositorMutableProperty::kNone;
45 for (int i = 0; i < CompositorMutableProperty::kNumProperties; ++i) { 45 for (int i = 0; i < CompositorMutableProperty::kNumProperties; ++i) {
46 if (m_counts[i]) 46 if (m_counts[i])
47 properties |= 1 << i; 47 properties |= 1 << i;
48 } 48 }
49 return properties; 49 return properties;
50 } 50 }
51 51
52 } // namespace blink 52 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/AXObjectCache.cpp ('k') | third_party/WebKit/Source/core/dom/ContextFeatures.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698