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/layout/compositing/CompositingInputsUpdater.cpp

Issue 2748103015: Replace ASSERT with DCHECK in core/layout/<sub dirs> (Closed)
Patch Set: Rebase with latest Created 3 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 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/FrameView.h" 8 #include "core/frame/FrameView.h"
9 #include "core/layout/LayoutBlock.h" 9 #include "core/layout/LayoutBlock.h"
10 #include "core/layout/LayoutView.h" 10 #include "core/layout/LayoutView.h"
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 LayoutBlockFlow::updateAncestorShouldPaintFloatingObject( 262 LayoutBlockFlow::updateAncestorShouldPaintFloatingObject(
263 *layer->layoutBox()); 263 *layer->layoutBox());
264 } 264 }
265 } 265 }
266 } 266 }
267 267
268 #if DCHECK_IS_ON() 268 #if DCHECK_IS_ON()
269 269
270 void CompositingInputsUpdater::assertNeedsCompositingInputsUpdateBitsCleared( 270 void CompositingInputsUpdater::assertNeedsCompositingInputsUpdateBitsCleared(
271 PaintLayer* layer) { 271 PaintLayer* layer) {
272 ASSERT(!layer->childNeedsCompositingInputsUpdate()); 272 DCHECK(!layer->childNeedsCompositingInputsUpdate());
273 ASSERT(!layer->needsCompositingInputsUpdate()); 273 DCHECK(!layer->needsCompositingInputsUpdate());
274 274
275 for (PaintLayer* child = layer->firstChild(); child; 275 for (PaintLayer* child = layer->firstChild(); child;
276 child = child->nextSibling()) 276 child = child->nextSibling())
277 assertNeedsCompositingInputsUpdateBitsCleared(child); 277 assertNeedsCompositingInputsUpdateBitsCleared(child);
278 } 278 }
279 279
280 #endif 280 #endif
281 281
282 } // namespace blink 282 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698