WebCore:
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 19 Jan 2008 10:12:48 +0000 (10:12 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 19 Jan 2008 10:12:48 +0000 (10:12 +0000)
commit9cc853b5e7b1b230c6e4f1017d6f0164e095b2d5
tree037e4b62e6fa3c227cb878bbaeb15dfd03882df0
parent6e015fecc6d70f832038bdde4c7555c940e5a096
WebCore:

        Reviewed by Maciej Stachowiak.

        - fix <rdar://problem/5645813> CrashTracer: [USER] 6 crashes in Safari at com.apple.WebCore: WebCore::RenderBox::destroy + 116

        Test: editing/selection/inconsistent-in-removeChildNode.html

        * editing/SelectionController.cpp:
        (WebCore::SelectionController::nodeWillBeRemoved): If the selection
        base or extent are not visible any more, adjust the selection.

LayoutTests:

        Reviewed by Maciej Stachowiak.

        - test and updated results for <rdar://problem/5645813> CrashTracer: [USER] 6 crashes in Safari at com.apple.WebCore: WebCore::RenderBox::destroy + 116

        * editing/selection/inconsistent-in-removeChildNode.html: Added.
        * platform/mac-leopard/editing/pasteboard/paste-RTFD-expected.txt:
        * platform/mac-leopard/editing/selection: Added.
        * platform/mac-leopard/editing/selection/inconsistent-in-removeChildNode-expected.checksum: Added.
        * platform/mac-leopard/editing/selection/inconsistent-in-removeChildNode-expected.png: Added.
        * platform/mac/editing/deleting/collapse-whitespace-3587601-fix-expected.txt:
        * platform/mac/editing/deleting/delete-3608462-fix-expected.txt:
        * platform/mac/editing/deleting/delete-4083333-fix-expected.txt:
        * platform/mac/editing/deleting/delete-leading-ws-001-expected.txt:
        * platform/mac/editing/deleting/delete-line-011-expected.txt:
        * platform/mac/editing/execCommand/find-after-replace-expected.txt:
        * platform/mac/editing/execCommand/paste-1-expected.txt:
        * platform/mac/editing/execCommand/paste-2-expected.txt:
        * platform/mac/editing/pasteboard/emacs-ctrl-k-y-001-expected.txt:
        * platform/mac/editing/selection/inconsistent-in-removeChildNode-expected.txt: Added.
        * platform/mac/editing/selection/move-between-blocks-no-001-expected.txt:
        * platform/mac/editing/selection/replace-selection-1-expected.txt:
        * platform/mac/editing/style/remove-underline-across-paragraph-expected.txt:
        * platform/mac/editing/style/remove-underline-across-paragraph-in-bold-expected.txt:
        * platform/mac/editing/style/remove-underline-after-paragraph-in-bold-expected.txt:
        * platform/mac/editing/style/remove-underline-expected.txt:
        * platform/mac/editing/style/remove-underline-in-bold-expected.txt:
        * platform/mac/editing/style/unbold-in-bold-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29667 268f45cc-cd09-0410-ab3c-d52691b4dbfc
25 files changed:
LayoutTests/ChangeLog
LayoutTests/editing/selection/inconsistent-in-removeChildNode.html [new file with mode: 0644]
LayoutTests/platform/mac-leopard/editing/pasteboard/paste-RTFD-expected.txt
LayoutTests/platform/mac-leopard/editing/selection/inconsistent-in-removeChildNode-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac-leopard/editing/selection/inconsistent-in-removeChildNode-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/editing/deleting/collapse-whitespace-3587601-fix-expected.txt
LayoutTests/platform/mac/editing/deleting/delete-3608462-fix-expected.txt
LayoutTests/platform/mac/editing/deleting/delete-4083333-fix-expected.txt
LayoutTests/platform/mac/editing/deleting/delete-leading-ws-001-expected.txt
LayoutTests/platform/mac/editing/deleting/delete-line-011-expected.txt
LayoutTests/platform/mac/editing/execCommand/find-after-replace-expected.txt
LayoutTests/platform/mac/editing/execCommand/paste-1-expected.txt
LayoutTests/platform/mac/editing/execCommand/paste-2-expected.txt
LayoutTests/platform/mac/editing/pasteboard/emacs-ctrl-k-y-001-expected.txt
LayoutTests/platform/mac/editing/selection/inconsistent-in-removeChildNode-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/editing/selection/move-between-blocks-no-001-expected.txt
LayoutTests/platform/mac/editing/selection/replace-selection-1-expected.txt
LayoutTests/platform/mac/editing/style/remove-underline-across-paragraph-expected.txt
LayoutTests/platform/mac/editing/style/remove-underline-across-paragraph-in-bold-expected.txt
LayoutTests/platform/mac/editing/style/remove-underline-after-paragraph-in-bold-expected.txt
LayoutTests/platform/mac/editing/style/remove-underline-expected.txt
LayoutTests/platform/mac/editing/style/remove-underline-in-bold-expected.txt
LayoutTests/platform/mac/editing/style/unbold-in-bold-expected.txt
WebCore/ChangeLog
WebCore/editing/SelectionController.cpp