WebCore:
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 24 Sep 2005 13:18:54 +0000 (13:18 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 24 Sep 2005 13:18:54 +0000 (13:18 +0000)
commit781dec34df551c69b0cec6910e025d4a7cc4a6ee
tree6f00d63096eba5fc45f677bd7a2074385846546a
parenta2a5e5c2939913c3cc86087269756e0e6f67e132
WebCore:

        - added tests and updated results for WebKit ATSU text measurement change

        * layout-tests/fast/text/cg-vs-atsui.html: Added.
        * layout-tests/fast/text/cg-vs-atsui-expected.checksum: Added.
        * layout-tests/fast/text/cg-vs-atsui-expected.png: Added.
        * layout-tests/fast/text/cg-vs-atsui-expected.txt: Added.

        * layout-tests/css1/text_properties/text-transCapitalize-expected.checksum: Updated.
        * layout-tests/css1/text_properties/text-transCapitalize-expected.png: Updated.
        * layout-tests/css1/text_properties/text-transCapitalize-expected.txt: Updated.
        * layout-tests/fast/text/international/bidi-CS-after-AN-expected.checksum: Updated.
        * layout-tests/fast/text/international/bidi-CS-after-AN-expected.png: Updated.
        * layout-tests/fast/text/international/bidi-CS-after-AN-expected.txt: Updated.
        * layout-tests/fast/text/international/bidi-explicit-embedding-expected.checksum: Updated.
        * layout-tests/fast/text/international/bidi-explicit-embedding-expected.png: Updated.
        * layout-tests/fast/text/international/bidi-explicit-embedding-expected.txt: Updated.
        * layout-tests/fast/text/international/bidi-fallback-font-weight-expected.checksum: Updated.
        * layout-tests/fast/text/international/bidi-fallback-font-weight-expected.png: Updated.
        * layout-tests/fast/text/international/bidi-fallback-font-weight-expected.txt: Updated.
        * layout-tests/fast/text/international/bidi-override-expected.checksum: Updated.
        * layout-tests/fast/text/international/bidi-override-expected.png: Updated.
        * layout-tests/fast/text/international/bidi-override-expected.txt: Updated.

        - added pixel results for this test

        * layout-tests/editing/pasteboard/3976872-expected.checksum: Added.
        * layout-tests/editing/pasteboard/3976872-expected.png: Added.

WebKit:

        Reviewed, tweaked a tiny bit, and landed by Darin.

        - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=4940
          CG and ATSUI give different width to the same text

        * WebCoreSupport.subproj/WebTextRenderer.m:
        (overrideLayoutOperation): Added. ATSU callback to do the rounding.
        (-[WebTextRenderer _trapezoidForRun:style:atPoint:]): Use the new createATSULayoutParameters
        function instead of calling _createATSUTextLayoutForRun.
        (-[WebTextRenderer _ATSU_drawHighlightForRun:style:geometry:]): Use createATSULayoutParameters,
        and also compute the width in a way that works for any direction combination.
        (-[WebTextRenderer _ATSU_drawRun:style:geometry:]): Use createATSULayoutParameters.
        (-[WebTextRenderer _ATSU_pointToOffset:style:position:reversed:includePartialGlyphs:]):
        Use createATSULayoutParameters. Also put in code that seems to work around an ATSU bug.
        (createATSULayoutParameters): Added.
        (disposeATSULayoutParameters): Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@10617 268f45cc-cd09-0410-ab3c-d52691b4dbfc
24 files changed:
LayoutTests/css1/text_properties/text-transCapitalize-expected.checksum
LayoutTests/css1/text_properties/text-transCapitalize-expected.png
LayoutTests/css1/text_properties/text-transCapitalize-expected.txt
LayoutTests/editing/pasteboard/3976872-expected.checksum [new file with mode: 0644]
LayoutTests/editing/pasteboard/3976872-expected.png [new file with mode: 0644]
LayoutTests/fast/text/cg-vs-atsui-expected.checksum [new file with mode: 0644]
LayoutTests/fast/text/cg-vs-atsui-expected.png [new file with mode: 0644]
LayoutTests/fast/text/cg-vs-atsui-expected.txt [new file with mode: 0644]
LayoutTests/fast/text/cg-vs-atsui.html [new file with mode: 0644]
LayoutTests/fast/text/international/bidi-CS-after-AN-expected.checksum
LayoutTests/fast/text/international/bidi-CS-after-AN-expected.png
LayoutTests/fast/text/international/bidi-CS-after-AN-expected.txt
LayoutTests/fast/text/international/bidi-explicit-embedding-expected.checksum
LayoutTests/fast/text/international/bidi-explicit-embedding-expected.png
LayoutTests/fast/text/international/bidi-explicit-embedding-expected.txt
LayoutTests/fast/text/international/bidi-fallback-font-weight-expected.checksum
LayoutTests/fast/text/international/bidi-fallback-font-weight-expected.png
LayoutTests/fast/text/international/bidi-fallback-font-weight-expected.txt
LayoutTests/fast/text/international/bidi-override-expected.checksum
LayoutTests/fast/text/international/bidi-override-expected.png
LayoutTests/fast/text/international/bidi-override-expected.txt
WebCore/ChangeLog-2005-12-19
WebKit/ChangeLog
WebKit/WebCoreSupport.subproj/WebTextRenderer.m