LayoutTests:
authorddkilzer <ddkilzer@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Jul 2006 10:55:32 +0000 (10:55 +0000)
committerddkilzer <ddkilzer@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Jul 2006 10:55:32 +0000 (10:55 +0000)
commitee2677466a97154d1f631f8e5a3ae6cde3f76ae8
treecc66b2ad5b6d66a60500f91370c8f4b6bc652d29
parentc226f3cf704e3e65180cbdc23630482086e64d7c
LayoutTests:

        Reviewed by Justin.  Patch by Mitz.

        - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=9978
          REGRESSION (r12949-r12988): Clicking the first letter on a line places the caret at the end of the previous line

        * editing/selection/click-start-of-line-expected.checksum: Added.
        * editing/selection/click-start-of-line-expected.png: Added.
        * editing/selection/click-start-of-line-expected.txt: Added.
        * editing/selection/click-start-of-line.html: Added.

WebCore:

        Reviewed by Justin.  Patch by Mitz.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9978
          REGRESSION (r12949-r12988): Clicking the first letter on a line places the caret at the end of the previous line

        Test: editing/selection/click-start-of-line.html

        * rendering/RenderText.cpp:
        (WebCore::RenderText::positionForCoordinates): Changed to return downstream
        affinity if the x coordinate is to the left of the middle of the first character
        in the text box.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15500 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/selection/click-start-of-line-expected.checksum [new file with mode: 0644]
LayoutTests/editing/selection/click-start-of-line-expected.png [new file with mode: 0644]
LayoutTests/editing/selection/click-start-of-line-expected.txt [new file with mode: 0644]
LayoutTests/editing/selection/click-start-of-line.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/rendering/RenderText.cpp