• harrison's avatar
    LayoutTests: · a2c2e1bf
    harrison authored
            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: http://svn.webkit.org/repository/webkit/trunk@16700 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    a2c2e1bf
ChangeLog 1.2 MB
The source could not be displayed because it is larger than 1 MB. You can load it anyway or download it instead.