| Index: third_party/WebKit/Source/platform/text/TextBreakIterator.cpp
|
| diff --git a/third_party/WebKit/Source/platform/text/TextBreakIterator.cpp b/third_party/WebKit/Source/platform/text/TextBreakIterator.cpp
|
| index 438911f1b266e8dde4fe5ea287042213dd3d4689..a908f0a8980611e4e578fef72c7e06ce187e17bb 100644
|
| --- a/third_party/WebKit/Source/platform/text/TextBreakIterator.cpp
|
| +++ b/third_party/WebKit/Source/platform/text/TextBreakIterator.cpp
|
| @@ -255,12 +255,9 @@ static inline int nextBreakablePosition(
|
| int len = static_cast<int>(length);
|
| int nextBreak = -1;
|
|
|
| - CharacterType lastLastCh =
|
| - pos > 1 ? str[pos - 2] : static_cast<CharacterType>(
|
| - lazyBreakIterator.secondToLastCharacter());
|
| - CharacterType lastCh =
|
| - pos > 0 ? str[pos - 1]
|
| - : static_cast<CharacterType>(lazyBreakIterator.lastCharacter());
|
| + UChar lastLastCh =
|
| + pos > 1 ? str[pos - 2] : lazyBreakIterator.secondToLastCharacter();
|
| + UChar lastCh = pos > 0 ? str[pos - 1] : lazyBreakIterator.lastCharacter();
|
| ULineBreak lastLineBreak;
|
| if (lineBreakType == LineBreakType::BreakAll)
|
| lastLineBreak = lineBreakPropertyValue(lastLastCh, lastCh);
|
|
|