REGRESSION(r152313): Links in certain twitter postings don't warp correctly on page
authorzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Jul 2013 19:47:34 +0000 (19:47 +0000)
committerzalan@apple.com <zalan@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Jul 2013 19:47:34 +0000 (19:47 +0000)
commita234c16b59a09b268f9e491f09e58e75472a9f1f
tree4c917dd5677b8885930562241fea09d4940b44d4
parent98d75d7a06a61a4e4a0a0250a6f3f4d055dc1a30
REGRESSION(r152313): Links in certain twitter postings don't warp correctly on page
https://bugs.webkit.org/show_bug.cgi?id=118435

Reviewed by David Hyatt.

When we find an empty inline in the middle of the word, prefer breaking it before
instead of after to match other browsers' rendering.

Source/WebCore:

Test: fast/text/whitespace/inline-whitespace-wrapping-12.html

* rendering/RenderBlockLineLayout.cpp:
(WebCore::canBreakAtThisPosition):

LayoutTests:

* fast/text/whitespace/inline-whitespace-wrapping-12-expected.html: Added.
* fast/text/whitespace/inline-whitespace-wrapping-12.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@153061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/text/whitespace/inline-whitespace-wrapping-12-expected.html [new file with mode: 0644]
LayoutTests/fast/text/whitespace/inline-whitespace-wrapping-12.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBlockLineLayout.cpp