| Index: third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp
|
| diff --git a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp
|
| index 786924d0ea952c4e3994a8ed2f7943c248528f85..1298b7651be9fbf00809e0d9cb924dc7bc860385 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp
|
| +++ b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResult.cpp
|
| @@ -241,19 +241,19 @@ void ShapeResult::applySpacing(ShapeResultSpacing& spacing, const TextRun& textR
|
| offset = spacing.letterSpacing();
|
| glyphData.offset.expand(offsetX, offsetY);
|
| }
|
| - continue;
|
| - }
|
| -
|
| - offsetX = offsetY = 0;
|
| - float space = spacing.computeSpacing(textRun,
|
| - run->m_startIndex + glyphData.characterIndex, offset);
|
| - glyphData.advance += space;
|
| - totalSpaceForRun += space;
|
| - if (textRun.rtl()) {
|
| - // In RTL, spacing should be added to left side of glyphs.
|
| - offset += space;
|
| + } else {
|
| + offsetX = offsetY = 0;
|
| + float space = spacing.computeSpacing(textRun,
|
| + run->m_startIndex + glyphData.characterIndex, offset);
|
| + glyphData.advance += space;
|
| + totalSpaceForRun += space;
|
| + if (textRun.rtl()) {
|
| + // In RTL, spacing should be added to left side of glyphs.
|
| + offset += space;
|
| + }
|
| + glyphData.offset.expand(offsetX, offsetY);
|
| }
|
| - glyphData.offset.expand(offsetX, offsetY);
|
| + m_hasVerticalOffsets |= (glyphData.offset.height() != 0);
|
| }
|
| run->m_width += totalSpaceForRun;
|
| totalSpace += totalSpaceForRun;
|
|
|