REGRESSION (r129176): Incorrect line breaking when kerning occurs between a...
REGRESSION (r129176): Incorrect line breaking when kerning occurs between a space and the following character https://bugs.webkit.org/show_bug.cgi?id=97377 Reviewed by Enrica Casucci. Source/WebCore: Test: fast/text/kerning-with-TextLayout.html When kerning is enabled, the last character in a word may have its advance shortened because of its trailing space. To account for that, words are measured along with the trailing space, then the width of a space is subtracted from the result. This doesn’t work when the trailing space itself has its advance shortened due to the character following it, which can happen when using the TextLayout optimization. However, when the optimization is used, the advance of the last character of the word is already adjusted for the trailing space, so there is no need to measure with that space and subtract its advance. * rendering/RenderBlockLineLayout.cpp: (WebCore::RenderBlock::LineBreaker::nextLineBreak): Changed to not use the trailingSpaceWidth mechanism when TextLayout is being used. LayoutTests: * fast/text/kerning-with-TextLayout-expected.html: Added. * fast/text/kerning-with-TextLayout.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129284 268f45cc-cd09-0410-ab3c-d52691b4dbfc