RenderText::computePreferredLogicalWidths() should measure words with trailing spaces
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Aug 2011 20:43:48 +0000 (20:43 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 26 Aug 2011 20:43:48 +0000 (20:43 +0000)
commit6c0c6155e69fcd9a482343b32ea63802de3ecbfd
tree33fdd978d2b1506986ed2cbf202e2b2be098c0b4
parentb7d31f294abd537152881806f39f18f308c1a0eb
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
LayoutTests/ChangeLog
LayoutTests/fast/text/complex-preferred-logical-widths.html [new file with mode: 0644]
LayoutTests/platform/mac/fast/text/complex-preferred-logical-widths-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/text/complex-preferred-logical-widths-expected.txt [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderText.cpp