| Index: third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h
|
| diff --git a/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h b/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h
|
| index 93d861d97faee46ba026adf788a6d7161403ffb3..4f3b643ffb9ca3e58f518c5df517cfd73b725039 100644
|
| --- a/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h
|
| +++ b/third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h
|
| @@ -612,8 +612,10 @@ inline bool BreakingContext::handleText(WordMeasurements& wordMeasurements, bool
|
| UChar c = m_current.current();
|
| m_currentCharacterIsSpace = c == spaceCharacter || c == tabulationCharacter || (!m_preservesNewline && (c == newlineCharacter));
|
|
|
| - if (!m_collapseWhiteSpace || !m_currentCharacterIsSpace)
|
| + if (!m_collapseWhiteSpace || !m_currentCharacterIsSpace) {
|
| m_lineInfo.setEmpty(false, m_block, &m_width);
|
| + m_width.setTrailingWhitespaceWidth(0);
|
| + }
|
|
|
| if (c == softHyphenCharacter && m_autoWrap && !hyphenWidth) {
|
| hyphenWidth = layoutText.hyphenWidth(font, textDirectionFromUnicode(m_resolver.position().direction()));
|
|
|