WebCore:
authormitz <mitz@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 Oct 2007 16:21:34 +0000 (16:21 +0000)
committermitz <mitz@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 18 Oct 2007 16:21:34 +0000 (16:21 +0000)
commit2839f2a77806c2188a9864f4a84aae649f1fa280
treea795cbd6ca8316d95ce76962b154a8c63d72891a
parentf221da9eab9b7fae0c7166b11b18450d2fb7c7ac
WebCore:

        Reviewed by Nikolas Zimmermann.

        - fix http://bugs.webkit.org/show_bug.cgi?id=15367
          Assertion failure inspecting a document including soft hyphen code (0xad)

        Test: fast/text/word-break-soft-hyphen.html

        * rendering/RenderText.cpp:
        (WebCore::RenderText::calcPrefWidths): Changed to treat soft hyphens as
        word boundaries. This fixes the bug and is consistent with the fact that
        run rounding does occur at soft hyphens.

LayoutTests:

        Reviewed by Nikolas Zimmermann.

        - test for http://bugs.webkit.org/show_bug.cgi?id=15367
          Assertion failure inspecting a document including soft hyphen code (0xad)

        * fast/text/word-break-soft-hyphen.html: Added.
        * platform/mac/fast/text/word-break-soft-hyphen-expected.checksum: Added.
        * platform/mac/fast/text/word-break-soft-hyphen-expected.png: Added.
        * platform/mac/fast/text/word-break-soft-hyphen-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26746 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/text/word-break-soft-hyphen.html [new file with mode: 0644]
LayoutTests/platform/mac/fast/text/word-break-soft-hyphen-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/fast/text/word-break-soft-hyphen-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/text/word-break-soft-hyphen-expected.txt [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/RenderText.cpp