LayoutTests:
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Apr 2007 18:59:04 +0000 (18:59 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 Apr 2007 18:59:04 +0000 (18:59 +0000)
commitd696b4a7954e7d2f6ece12ceecf4967dcd1cf5a7
tree5003f74859627aeb7ef65dcfc5e2cde525df91fd
parent71c29facd4b92e836a1a4ae9133d2f73ada2970a
LayoutTests:

        Reviewed by john

        <rdar://problem/5115601>
        REGRESSION: Crash deleting a selection that starts in an editable table cell

        * editing/deleting/5115601-expected.checksum: Added.
        * editing/deleting/5115601-expected.png: Added.
        * editing/deleting/5115601-expected.txt: Added.
        * editing/deleting/5115601.html: Added.

WebCore:

        Reviewed by john

        <rdar://problem/5115601>
        REGRESSION: Crash deleting a selection that starts in an editable table cell

        The selection starts at the start of an editable
        root that's embedded in a non-editable ToDo (table).
        Removing the selection removes all editable
        VisiblePositions from the root.  Then, the creation
        of mergeDestination fails, and using it causes a crash.

        * editing/DeleteSelectionCommand.cpp:
        (WebCore::DeleteSelectionCommand::mergeParagraphs):
        Nil-check mergeDestination to avoid crashing and
        also insert a break in that case at m_upstreamStart,
        so that we can create a valid mergeDestination and
        perform the merge.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@20760 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/deleting/5115601-expected.checksum [new file with mode: 0644]
LayoutTests/editing/deleting/5115601-expected.png [new file with mode: 0644]
LayoutTests/editing/deleting/5115601-expected.txt [new file with mode: 0644]
LayoutTests/editing/deleting/5115601.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/editing/DeleteSelectionCommand.cpp