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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_inline_node.h

Issue 2754723004: Replace RELEASE_ASSERT with CHECK in core/layout/ (Closed)
Patch Set: Created 3 years, 9 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/ng/ng_inline_node.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_inline_node.h b/third_party/WebKit/Source/core/layout/ng/ng_inline_node.h
index b3cab22b1091c2147fcbceb3ae03c3f7efa2931f..6fe47a6a174423f9cf8f500a0c010697bb4f8c76 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_inline_node.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_inline_node.h
@@ -211,11 +211,11 @@ class NGLayoutInlineItemRange {
unsigned Size() const { return size_; }
NGLayoutInlineItem& operator[](unsigned index) {
- RELEASE_ASSERT(index < size_);
+ CHECK_LT(index, size_);
return start_item_[index];
}
const NGLayoutInlineItem& operator[](unsigned index) const {
- RELEASE_ASSERT(index < size_);
+ CHECK_LT(index, size_);
return start_item_[index];
}

Powered by Google App Engine
This is Rietveld 408576698