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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutView.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/LayoutView.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp
index a5f630b1d29245abf836a4dcb8aaaa4108ca7e8c..d550901f2949c29e5c0ddd21576aa541b1821188 100644
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
@@ -192,12 +192,12 @@ void LayoutView::layoutContent() {
LayoutBlockFlow::layout();
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
checkLayoutState();
#endif
}
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
void LayoutView::checkLayoutState() {
ASSERT(!m_layoutState->next());
}
@@ -294,7 +294,7 @@ void LayoutView::layout() {
}
}
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
checkLayoutState();
#endif
clearNeedsLayout();

Powered by Google App Engine
This is Rietveld 408576698