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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlockFlow.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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
index 0f6faf1cc016b900853aa5e6eb43268f39611657..49d25e0e6202d58062c54e21c0851061e72b01a4 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
@@ -3356,7 +3356,7 @@ void LayoutBlockFlow::makeChildrenNonInline(LayoutObject* insertionPoint) {
moveChildrenTo(block, inlineRunStart, child);
}
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
for (LayoutObject* c = firstChild(); c; c = c->nextSibling())
ASSERT(!c->isInline());
#endif
@@ -3576,7 +3576,7 @@ void LayoutBlockFlow::removeFloatingObject(LayoutBox* floatBox) {
this));
floatingObject.originatingLine()->markDirty();
}
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
floatingObject.setOriginatingLine(nullptr);
#endif
}

Powered by Google App Engine
This is Rietveld 408576698