| Index: third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutText.cpp b/third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| index 8753bc158fe62257cb037b77494acbbdc843f128..80f0ce2b8b746a18a832f6885cb67581a420a980 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutText.cpp
|
| @@ -109,9 +109,7 @@ static void MakeCapitalized(String* string, UChar previous) {
|
| unsigned length = string->length();
|
| const StringImpl& input = *string->Impl();
|
|
|
| - if (length >= std::numeric_limits<unsigned>::max())
|
| - IMMEDIATE_CRASH();
|
| -
|
| + CHECK_LT(length, std::numeric_limits<unsigned>::max());
|
| StringBuffer<UChar> string_with_previous(length + 1);
|
| string_with_previous[0] =
|
| previous == kNoBreakSpaceCharacter ? kSpaceCharacter : previous;
|
|
|