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

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/CompositingInputsUpdater.cpp

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: Created 3 years, 11 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/layout/compositing/CompositingInputsUpdater.h" 5 #include "core/layout/compositing/CompositingInputsUpdater.h"
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "core/frame/FrameHost.h" 8 #include "core/frame/FrameHost.h"
9 #include "core/frame/FrameView.h" 9 #include "core/frame/FrameView.h"
10 #include "core/layout/LayoutBlock.h" 10 #include "core/layout/LayoutBlock.h"
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 for (PaintLayer* child = layer->firstChild(); child; 243 for (PaintLayer* child = layer->firstChild(); child;
244 child = child->nextSibling()) 244 child = child->nextSibling())
245 updateRecursive(child, updateType, info); 245 updateRecursive(child, updateType, info);
246 246
247 layer->didUpdateCompositingInputs(); 247 layer->didUpdateCompositingInputs();
248 248
249 m_geometryMap.popMappingsToAncestor(layer->parent()); 249 m_geometryMap.popMappingsToAncestor(layer->parent());
250 } 250 }
251 251
252 #if ENABLE(ASSERT) 252 #if DCHECK_IS_ON()
253 253
254 void CompositingInputsUpdater::assertNeedsCompositingInputsUpdateBitsCleared( 254 void CompositingInputsUpdater::assertNeedsCompositingInputsUpdateBitsCleared(
255 PaintLayer* layer) { 255 PaintLayer* layer) {
256 ASSERT(!layer->childNeedsCompositingInputsUpdate()); 256 ASSERT(!layer->childNeedsCompositingInputsUpdate());
257 ASSERT(!layer->needsCompositingInputsUpdate()); 257 ASSERT(!layer->needsCompositingInputsUpdate());
258 258
259 for (PaintLayer* child = layer->firstChild(); child; 259 for (PaintLayer* child = layer->firstChild(); child;
260 child = child->nextSibling()) 260 child = child->nextSibling())
261 assertNeedsCompositingInputsUpdateBitsCleared(child); 261 assertNeedsCompositingInputsUpdateBitsCleared(child);
262 } 262 }
263 263
264 #endif 264 #endif
265 265
266 } // namespace blink 266 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698