LayoutTests:
authoroliver <oliver@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 10 Aug 2007 19:39:37 +0000 (19:39 +0000)
committeroliver <oliver@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 10 Aug 2007 19:39:37 +0000 (19:39 +0000)
commitf02dccc4a1b9d3db4bfb114eda8bfc23a26ad030
tree7010a0c7ca890111206163e14c2e9f7a169de153
parent4d875ce2195f95288112ec0e8bb758b447615737
LayoutTests:

        Reviewed by Darin.

        Added new layout test to validate fix for <rdar://problem/5000470> REGRESSION: ATOK IM: reconvert returns incorrect symbol due to inconsistent range domains in TSM

        Corrected fast/text/attributed-substring-from-range to account for additional whitespace, and to be correct.

        * fast/text/attributed-substring-from-range-expected.txt:
        * fast/text/attributed-substring-from-range-in-textfield-expected.txt: Added.
        * fast/text/attributed-substring-from-range-in-textfield.html: Added.
        * fast/text/attributed-substring-from-range.html:

WebKit:

        Reviewed by Darin.

        Fixed <rdar://problem/5000470> REGRESSION: ATOK IM: reconvert returns incorrect symbol due to inconsistent range domains in TSM by working around <rdar://problem/5400551> [NSAttributedString(WebKitExtras) _web_attributedStringFromRange:] adds whitespace to the requested range

        We truncate the returned string to the expected length.

        * WebView/WebHTMLView.mm:
        (-[WebHTMLView attributedSubstringFromRange:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@24997 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/text/attributed-substring-from-range-expected.txt
LayoutTests/fast/text/attributed-substring-from-range-in-textfield-expected.txt [new file with mode: 0644]
LayoutTests/fast/text/attributed-substring-from-range-in-textfield.html [new file with mode: 0644]
LayoutTests/fast/text/attributed-substring-from-range.html
WebKit/ChangeLog
WebKit/WebView/WebHTMLView.mm