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

Unified Diff: third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp

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/line/InlineTextBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp b/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
index 702db3f99a754d08742be079861257a70a41a3e1..05fbd5aeeed4b46a457501edbc65e37cc63d63ee 100644
--- a/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
+++ b/third_party/WebKit/Source/core/layout/line/InlineTextBox.cpp
@@ -648,8 +648,8 @@ TextRun InlineTextBox::constructTextRun(
unsigned length = len();
// Ensure |this| is in sync with the corresponding LayoutText. Checking here
// has less binary size/perf impact than in StringView().
- RELEASE_ASSERT(startPos <= string.length() &&
- length <= string.length() - startPos);
+ CHECK_LE(startPos, string.length());
+ CHECK_LE(length, string.length() - startPos);
return constructTextRun(style, StringView(string, startPos, length),
getLineLayoutItem().textLength() - startPos,
charactersWithHyphen);
« no previous file with comments | « third_party/WebKit/Source/core/layout/TextAutosizer.cpp ('k') | third_party/WebKit/Source/core/layout/ng/ng_inline_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698