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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTableRow.cpp

Issue 2394683005: Remove ASSERT_UNUSED (Closed)
Patch Set: Created 4 years, 2 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/LayoutTableRow.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp b/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp
index deedac924cb4c2d945244d0958bcf5fb300adc02..34994f14cdbc3f7b4e3946948247fd3d1c0bd4b6 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTableRow.cpp
@@ -98,14 +98,18 @@ void LayoutTableRow::styleDidChange(StyleDifference diff,
const BorderValue& LayoutTableRow::borderAdjoiningStartCell(
const LayoutTableCell* cell) const {
- ASSERT_UNUSED(cell, cell->isFirstOrLastCellInRow());
+#if DCHECK_IS_ON()
+ DCHECK(cell->isFirstOrLastCellInRow());
+#endif
// FIXME: https://webkit.org/b/79272 - Add support for mixed directionality at the cell level.
return style()->borderStart();
}
const BorderValue& LayoutTableRow::borderAdjoiningEndCell(
const LayoutTableCell* cell) const {
- ASSERT_UNUSED(cell, cell->isFirstOrLastCellInRow());
+#if DCHECK_IS_ON()
+ DCHECK(cell->isFirstOrLastCellInRow());
+#endif
// FIXME: https://webkit.org/b/79272 - Add support for mixed directionality at the cell level.
return style()->borderEnd();
}

Powered by Google App Engine
This is Rietveld 408576698