| Index: third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.cpp
|
| diff --git a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.cpp b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.cpp
|
| index 4514c13c4f7e91938145952753180d6fc6ca11e9..5b1aeb85c56d5131101c83de033d1b7926f70579 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.cpp
|
| +++ b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.cpp
|
| @@ -160,9 +160,9 @@ float ShapeResultBuffer::fillGlyphBufferForTextEmphasisRun(
|
| uint16_t currentCharacterIndex =
|
| run->m_startIndex + glyphData.characterIndex + runOffset;
|
| bool isRunEnd = (i + 1 == numGlyphs);
|
| - bool isClusterEnd =
|
| - isRunEnd || (run->glyphToCharacterIndex(i + 1) + runOffset !=
|
| - currentCharacterIndex);
|
| + bool isClusterEnd = isRunEnd ||
|
| + (run->glyphToCharacterIndex(i + 1) + runOffset !=
|
| + currentCharacterIndex);
|
|
|
| if ((direction == TextDirection::kRtl && currentCharacterIndex >= to) ||
|
| (direction != TextDirection::kRtl && currentCharacterIndex < from)) {
|
|
|