Reviewed by Hyatt.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 1 Oct 2006 09:06:09 +0000 (09:06 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 1 Oct 2006 09:06:09 +0000 (09:06 +0000)
commitbfef62a83fe03bd9fa02132d81e6357c8660959b
tree1c12f91a12646ea59fa77169df8287b77f40894c
parentefc0c78ad79d8902e74b561739e494aba2a53b9c
    Reviewed by Hyatt.

        Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=10842
        REGRESSION (r15418): contenteditable div truncates rightmost Japanese character

        Make sure we only break after a space (and not any other valid line-break) if
        the style is -webkit-line-break: after-white-space (e.g. for a contentEditable div).
        I also did a logic shuffle at Mitz's request to prevent doing an if on the same expression
        twice in quick succession.

        Test: fast/text/line-breaks-after-white-space.html

        * rendering/bidi.cpp:
        (WebCore::RenderBlock::findNextLineBreak):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16696 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/text/line-breaks-after-white-space-expected.checksum [new file with mode: 0644]
LayoutTests/fast/text/line-breaks-after-white-space-expected.png [new file with mode: 0644]
LayoutTests/fast/text/line-breaks-after-white-space-expected.txt [new file with mode: 0644]
LayoutTests/fast/text/line-breaks-after-white-space.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/bidi.cpp