LayoutTests:
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Dec 2006 19:29:40 +0000 (19:29 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 8 Dec 2006 19:29:40 +0000 (19:29 +0000)
commit79358a0f2d3faf0d246ca18c727dab7f4e6dd41d
tree84b57607d577897ac30cec01b09c79c0aa9abaf4
parent072d246e6c5b98fad9be920e650689cd29bab303
LayoutTests:

        Reviewed by john

        <rdar://problem/4836287>
        Cannot expand selection out of editable element when containing element is non-editable.

        * editing/selection/mixed-editability-6-expected.checksum: Added.
        * editing/selection/mixed-editability-6-expected.png: Added.
        * editing/selection/mixed-editability-6-expected.txt: Added.
        * editing/selection/mixed-editability-6.html: Added.
        * editing/selection/mixed-editability-7-expected.checksum: Added.
        * editing/selection/mixed-editability-7-expected.png: Added.
        * editing/selection/mixed-editability-7-expected.txt: Added.
        * editing/selection/mixed-editability-7.html: Added.

WebCore:

        Reviewed by john

        <rdar://problem/4836287>
        Cannot expand selection out of editable element when containing element is non-editable.

        * editing/Selection.cpp:
        (WebCore::Selection::adjustForEditableContent): Restrict the selection endpoints
        to the same *highest* editable root.  This bug only happened when creating selections
        based in an editable region and extending into a higher editable root, so this change
        doesn't expose any new kinds of deletions, but we should start thinking about how
        those deletions should behave.
        * editing/SelectionController.cpp:
        (WebCore::SelectionController::selectAll): Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@18084 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
LayoutTests/ChangeLog
LayoutTests/editing/selection/mixed-editability-6-expected.checksum [new file with mode: 0644]
LayoutTests/editing/selection/mixed-editability-6-expected.png [new file with mode: 0644]
LayoutTests/editing/selection/mixed-editability-6-expected.txt [new file with mode: 0644]
LayoutTests/editing/selection/mixed-editability-6.html [new file with mode: 0644]
LayoutTests/editing/selection/mixed-editability-7-expected.checksum [new file with mode: 0644]
LayoutTests/editing/selection/mixed-editability-7-expected.png [new file with mode: 0644]
LayoutTests/editing/selection/mixed-editability-7-expected.txt [new file with mode: 0644]
LayoutTests/editing/selection/mixed-editability-7.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/editing/Selection.cpp
WebCore/editing/SelectionController.cpp