| 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);
|
|
|