LayoutTests:
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 1 Oct 2006 16:06:11 +0000 (16:06 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 1 Oct 2006 16:06:11 +0000 (16:06 +0000)
commita76804bd9aed4e9a184402353475f81ed146fc88
tree06fb37924c16c3242c42999d0f2dc0018e8940ee
parentda760e56023d141a19d2aa884ab9b18feed29f9f
LayoutTests:

        Reviewed by John Sullivan.

        <rdar://problem/4641262> REGRESSION: Japanese text corrupts on wrapping point

        * fast/text/international/wrap-CJK-001-expected.checksum: Added.
        * fast/text/international/wrap-CJK-001-expected.png: Added.
        * fast/text/international/wrap-CJK-001-expected.txt: Added.
        * fast/text/international/wrap-CJK-001.html: Added.

WebCore:

        Reviewed by John Sullivan.

        <rdar://problem/4641262> REGRESSION: Japanese text corrupts on wrapping point

        Problem was that the decision to trim was based only on whether the character
        is a soft hyphen, which caused pretty much any Japanese character to go.
        Changed to decide based on whether the character is ignorable whitespace.

        Test:
        * fast/text/international/wrap-CJK-001.html

        * rendering/bidi.cpp:
        (WebCore::isTrimmableChar):
        New. Checks whether character is whitespace that can be ignored
        according to the text node's style.
        trimmed from the end of wrapped line.
        (WebCore::checkMidpoints):
        Call isTrimmable() rather than checking for char != SOFT_HYPHEN.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16700 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/text/international/wrap-CJK-001-expected.checksum [new file with mode: 0644]
LayoutTests/fast/text/international/wrap-CJK-001-expected.png [new file with mode: 0644]
LayoutTests/fast/text/international/wrap-CJK-001-expected.txt [new file with mode: 0644]
LayoutTests/fast/text/international/wrap-CJK-001.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/bidi.cpp