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

Unified Diff: third_party/WebKit/Source/core/layout/line/LineBoxList.cpp

Issue 2640163004: Replace ENABLE(ASSERT) with DCHECK_IS_ON(). (Closed)
Patch Set: m_domTreeVersion initialization 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/line/LineBoxList.cpp
diff --git a/third_party/WebKit/Source/core/layout/line/LineBoxList.cpp b/third_party/WebKit/Source/core/layout/line/LineBoxList.cpp
index 7938afb2dd6040150e4b243f33613013fa9d8203..77b3069d5110660677a1922f67850af17ce08149 100644
--- a/third_party/WebKit/Source/core/layout/line/LineBoxList.cpp
+++ b/third_party/WebKit/Source/core/layout/line/LineBoxList.cpp
@@ -40,7 +40,7 @@
namespace blink {
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
LineBoxList::~LineBoxList() {
ASSERT(!m_firstLineBox);
ASSERT(!m_lastLineBox);
@@ -364,7 +364,7 @@ void LineBoxList::dirtyLinesFromChangedChild(LineLayoutItem container,
}
}
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
void LineBoxList::checkConsistency() const {
#ifdef CHECK_CONSISTENCY
const InlineFlowBox* prev = nullptr;
« no previous file with comments | « third_party/WebKit/Source/core/layout/line/LineBoxList.h ('k') | third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698