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

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

Issue 1854423002: ASSERT -> {DCHECK|DCHECK_XX}, ENABLE(ASSERT) -> DCHECK_IS_ON() in dom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark svg/as-image/svg-nested.html crash on win Created 4 years, 8 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 #include "core/dom/CompositorProxiedPropertySet.h" 5 #include "core/dom/CompositorProxiedPropertySet.h"
6 6
7 #include "wtf/PassOwnPtr.h" 7 #include "wtf/PassOwnPtr.h"
8 8
9 namespace blink { 9 namespace blink {
10 10
(...skipping 19 matching lines...) Expand all
30 for (int i = 0; i < CompositorMutableProperty::kNumProperties; ++i) { 30 for (int i = 0; i < CompositorMutableProperty::kNumProperties; ++i) {
31 if (mutableProperties & (1 << i)) 31 if (mutableProperties & (1 << i))
32 ++m_counts[i]; 32 ++m_counts[i];
33 } 33 }
34 } 34 }
35 35
36 void CompositorProxiedPropertySet::decrement(uint32_t mutableProperties) 36 void CompositorProxiedPropertySet::decrement(uint32_t mutableProperties)
37 { 37 {
38 for (int i = 0; i < CompositorMutableProperty::kNumProperties; ++i) { 38 for (int i = 0; i < CompositorMutableProperty::kNumProperties; ++i) {
39 if (mutableProperties & (1 << i)) { 39 if (mutableProperties & (1 << i)) {
40 ASSERT(m_counts[i]); 40 DCHECK(m_counts[i]);
41 --m_counts[i]; 41 --m_counts[i];
42 } 42 }
43 } 43 }
44 } 44 }
45 45
46 uint32_t CompositorProxiedPropertySet::proxiedProperties() const 46 uint32_t CompositorProxiedPropertySet::proxiedProperties() const
47 { 47 {
48 uint32_t properties = CompositorMutableProperty::kNone; 48 uint32_t properties = CompositorMutableProperty::kNone;
49 for (int i = 0; i < CompositorMutableProperty::kNumProperties; ++i) { 49 for (int i = 0; i < CompositorMutableProperty::kNumProperties; ++i) {
50 if (m_counts[i]) 50 if (m_counts[i])
51 properties |= 1 << i; 51 properties |= 1 << i;
52 } 52 }
53 return properties; 53 return properties;
54 } 54 }
55 55
56 } // namespace blink 56 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ChildNodeList.cpp ('k') | third_party/WebKit/Source/core/dom/CompositorProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698