RenderText::computePreferredLogicalWidths() should measure words with trailing spaces
https://bugs.webkit.org/show_bug.cgi?id=66733
Source/WebCore:
Patch by Ned Holbrook <nholbrook@apple.com> on 2011-08-26
Reviewed by Dan Bernstein.
Test: fast/text/complex-preferred-logical-widths.html
* rendering/RenderText.cpp:
(WebCore::RenderText::computePreferredLogicalWidths): Apply logic from RenderBlock::LineBreaker::nextLineBreak().
LayoutTests:
* fast/text/complex-preferred-logical-widths.html: Added.
* platform/mac/fast/text/complex-preferred-logical-widths-expected.txt: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@93909
268f45cc-cd09-0410-ab3c-
d52691b4dbfc