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

Unified Diff: third_party/WebKit/Source/core/layout/line/InlineBox.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/InlineBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/line/InlineBox.cpp b/third_party/WebKit/Source/core/layout/line/InlineBox.cpp
index ba2aa2567ffc9bb39bca5002b846f0d7f777ad7a..97ae55243db8cc510f9eb2ca5260d0f5ce307bd7 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineBox.cpp
+++ b/third_party/WebKit/Source/core/layout/line/InlineBox.cpp
@@ -43,7 +43,7 @@ struct SameSizeAsInlineBox : DisplayItemClient {
void* a[4];
LayoutPoint b;
LayoutUnit c;
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
bool f;
#endif
};
@@ -51,13 +51,11 @@ struct SameSizeAsInlineBox : DisplayItemClient {
static_assert(sizeof(InlineBox) == sizeof(SameSizeAsInlineBox),
"InlineBox should stay small");
-#if ENABLE(ASSERT)
-
+#if DCHECK_IS_ON()
InlineBox::~InlineBox() {
if (!m_hasBadParent && m_parent)
m_parent->setHasBadChildList();
}
-
#endif
DISABLE_CFI_PERF
« no previous file with comments | « third_party/WebKit/Source/core/layout/line/InlineBox.h ('k') | third_party/WebKit/Source/core/layout/line/InlineFlowBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698