LayoutTests:
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Jul 2006 02:31:39 +0000 (02:31 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Jul 2006 02:31:39 +0000 (02:31 +0000)
commitd1c1d123ef1e3e3a8265926af46a0715d84e9c83
tree6146c98c20b676de64793b44c2be90f04163c407
parent5934e98a12cb75cda02b362daca78a40ff2d1551
LayoutTests:

        Reviewed by levi

        <rdar://problem/4509393>
        selected DOM range starts with <object>, 0 offset but selection should include the <object>

        * editing/selection/legal-positions-expected.txt: Added.
        * editing/selection/legal-positions.html: Added.

        * editing/deleting/delete-3608430-fix-expected.txt:
        * editing/deleting/delete-image-001-expected.txt:
        * editing/deleting/delete-image-002-expected.txt:
        * editing/deleting/delete-image-003-expected.txt:
        * editing/deleting/delete-image-004-expected.txt:
        * editing/selection/drag-to-contenteditable-iframe-expected.txt:
        * editing/selection/replaced-boundaries-3-expected.txt:
        * editing/selection/select-box-expected.txt:

WebCore:

        Reviewed by levi

        <rdar://problem/4509393>
        selected DOM range starts with <object>, 0 offset but selection should include the <object>

        * editing/ReplaceSelectionCommand.cpp:
        (WebCore::ReplaceSelectionCommand::shouldMergeStart):
        Don't pull content out of a table cell.
        * editing/htmlediting.cpp:
        (WebCore::editingIgnoresContent): Added <select> nodes.
        (WebCore::rangeCompliantEquivalent): Convert [node, 0] positions to positionBeforeNode(node)
        for more types of nodes.
        * rendering/RenderContainer.cpp:
        (WebCore::RenderContainer::positionForCoordinates):
        Fix a crasher when right clicking on an anonymous table.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15401 268f45cc-cd09-0410-ab3c-d52691b4dbfc
16 files changed:
LayoutTests/ChangeLog
LayoutTests/editing/deleting/delete-3608430-fix-expected.txt
LayoutTests/editing/deleting/delete-image-001-expected.txt
LayoutTests/editing/deleting/delete-image-002-expected.txt
LayoutTests/editing/deleting/delete-image-003-expected.txt
LayoutTests/editing/deleting/delete-image-004-expected.txt
LayoutTests/editing/selection/drag-to-contenteditable-iframe-expected.txt
LayoutTests/editing/selection/legal-positions-expected.txt [new file with mode: 0644]
LayoutTests/editing/selection/legal-positions.html [new file with mode: 0644]
LayoutTests/editing/selection/replaced-boundaries-3-expected.txt
LayoutTests/editing/selection/select-box-expected.txt
WebCore/ChangeLog
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/editing/ReplaceSelectionCommand.cpp
WebCore/editing/htmlediting.cpp
WebCore/rendering/RenderContainer.cpp