LayoutTests:
authoradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Jul 2006 20:01:16 +0000 (20:01 +0000)
committeradele <adele@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Jul 2006 20:01:16 +0000 (20:01 +0000)
commit3db0e03e199947c8f523590a255916b1f50bed19
tree64ab0272439187d28ada77e2c72d509f9559ed11
parenteb033bbadfef06de5d78e5381077ae906676587f
LayoutTests:

        Reviewed by Darin.

        * editing/selection/select-all-iframe-expected.txt:
        * editing/selection/select-from-textfield-outwards-expected.checksum: Added.
        * editing/selection/select-from-textfield-outwards-expected.png: Added.
        * editing/selection/select-from-textfield-outwards-expected.txt: Added.
        * editing/selection/select-from-textfield-outwards.html: Added.
        * fast/events/drag-outside-window-expected.txt:

WebCore:

        Reviewed by Darin.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9312
          REGRESSION: Selection bug in new text fields when selecting past the first letter

        Test: editing/selection/select-from-textfield-outwards.html

        * editing/Selection.cpp:
        (WebCore::Selection::adjustForEditableContent): Added code to handle the case
        where the selection starts (resp. ends) in the last (resp. first) visual position
        inside an editable root.
        * editing/htmlediting.cpp:
        (WebCore::comparePositions): Fixed the case of comparing a position inside a shadow
        tree with a position in the shadow ancestor.
        * rendering/RenderBlock.cpp:
        (WebCore::RenderBlock::positionForCoordinates): For coordinates outside a replaced
        object, return the position just before (after) the element if the coordinates are above or
        to the left (below or to the right).
        * rendering/RenderObject.cpp:
        (WebCore::RenderObject::caretMaxOffset): Changed to return 1 for replaced objects.
        * rendering/RenderText.cpp:
        (WebCore::RenderText::positionForCoordinates): Changed to return the last position
        in the lowest text box if the y coordinate is below all text boxes.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15558 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
LayoutTests/ChangeLog
LayoutTests/editing/selection/select-all-iframe-expected.txt
LayoutTests/editing/selection/select-from-textfield-outwards-expected.checksum [new file with mode: 0644]
LayoutTests/editing/selection/select-from-textfield-outwards-expected.png [new file with mode: 0644]
LayoutTests/editing/selection/select-from-textfield-outwards-expected.txt [new file with mode: 0644]
LayoutTests/editing/selection/select-from-textfield-outwards.html [new file with mode: 0644]
LayoutTests/fast/events/drag-outside-window-expected.txt
WebCore/ChangeLog
WebCore/editing/Selection.cpp
WebCore/editing/htmlediting.cpp
WebCore/rendering/RenderBlock.cpp
WebCore/rendering/RenderObject.cpp
WebCore/rendering/RenderText.cpp