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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTableSection.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/LayoutTableSection.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp b/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
index 9bf28babb5c2edb9d3fbf33f509ec1dea976acb5..e7e3bd17630210d0f2069dd526b1e3c43168aa29 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableSection.cpp
@@ -1267,7 +1267,7 @@ void LayoutTableSection::computeOverflowFromCells(unsigned totalRows,
m_overflow.reset();
m_overflowingCells.clear();
m_forceSlowPaintPathWithOverflowingCell = false;
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
bool hasOverflowingCell = false;
#endif
// Now that our height has been determined, add in overflow from cells.
@@ -1280,7 +1280,7 @@ void LayoutTableSection::computeOverflowFromCells(unsigned totalRows,
if (r < totalRows - 1 && cell == primaryCellAt(r + 1, c))
continue;
addOverflowFromChild(cell);
-#if ENABLE(ASSERT)
+#if DCHECK_IS_ON()
hasOverflowingCell |= cell->hasVisualOverflow();
#endif
if (cell->hasVisualOverflow() &&

Powered by Google App Engine
This is Rietveld 408576698