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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTableCell.h

Issue 2919653004: Use LOG() or LOG_IF() instead of IMMEDIATE_CRASH (Closed)
Patch Set: Use LOG() or CHECKi()|CHECK_FOO() instead of IMMEDIATE_CRASH Created 3 years, 7 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/LayoutTableCell.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutTableCell.h b/third_party/WebKit/Source/core/layout/LayoutTableCell.h
index c51301715749e7c696b7b1756d41ecb13cbc2729..dab75c75077f10a835ce9a56336c2e8e4f65919d 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTableCell.h
+++ b/third_party/WebKit/Source/core/layout/LayoutTableCell.h
@@ -103,9 +103,7 @@ class CORE_EXPORT LayoutTableCell final : public LayoutBlockFlow {
void ColSpanOrRowSpanChanged();
void SetAbsoluteColumnIndex(unsigned column) {
- if (UNLIKELY(column > kMaxColumnIndex))
- IMMEDIATE_CRASH();
-
+ CHECK(!UNLIKELY(column > kMaxColumnIndex));
tkent 2017/06/05 01:58:51 UNLIKELY isn't necessary. CHECK() contains it inte
absolute_column_index_ = column;
}

Powered by Google App Engine
This is Rietveld 408576698