WebCore:
authorjustin.garcia@apple.com <justin.garcia@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Dec 2007 06:56:28 +0000 (06:56 +0000)
committerjustin.garcia@apple.com <justin.garcia@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Dec 2007 06:56:28 +0000 (06:56 +0000)
commit032c87da0751a9f622994f251bad9db19b06c5ae
treef3a24e2757e363defd27e2f92c803bb94d113053
parenta5d50ff703d7ae7cd9cc337983fd45c21e0aba2a
WebCore:

        Reviewed by Darin Adler.

        <rdar://problem/5433862> Mail crashes at WebCore::highestAncestor() when deleting a particular selection

        * editing/DeleteSelectionCommand.cpp:
        (WebCore::DeleteSelectionCommand::removePreviouslySelectedEmptyTableRows):
        Don't remove the table row that contained the end of the selection if it is where we are
        about to place the ending selection.
        Don't remove all empty rows after the row that contained the start of the selection,
        they might come after the row that contained the end of the selection.

LayoutTests:

        Reviewed by Darin Adler.

        <rdar://problem/5433862> Mail crashes at WebCore::highestAncestor() when deleting a particular selection

        * editing/deleting/5433862-1-expected.txt: Added.
        * editing/deleting/5433862-1.html: Added.
        * editing/deleting/5433862-2.html: Added.
        * platform/mac/editing/deleting/5433862-2-expected.checksum: Added.
        * platform/mac/editing/deleting/5433862-2-expected.txt: Added.

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