LayoutTests:
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 15 Jul 2006 19:41:49 +0000 (19:41 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 15 Jul 2006 19:41:49 +0000 (19:41 +0000)
commit4b90bdba5b848f57d7ddfcbd6302950ef544de5c
tree5918ad7fdac976a986146194969e95a366975eb2
parent8eed4923bdc42a2b4c3faee523f9e4b7560859d5
LayoutTests:

        Reviewed by John Sullivan.

        - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=8952
          <rdar://problem/4575185>
          REGRESSION: crash on drag of highlighted Google custom home page modules

        * fast/dynamic/move-node-with-selection-expected.checksum: Added.
        * fast/dynamic/move-node-with-selection-expected.png: Added.
        * fast/dynamic/move-node-with-selection-expected.txt: Added.
        * fast/dynamic/move-node-with-selection.html: Added.

WebCore:

        Reviewed by John Sullivan.

        - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8952
          <rdar://problem/4575185>
          REGRESSION: crash on drag of highlighted Google custom home page modules

        Test: fast/dynamic/move-node-with-selection.html

        * editing/SelectionController.cpp: (WebCore::SelectionController::nodeWillBeRemoved):
        Call updateRendering before calling clearSelection(), since it's important to do any
        work beforehand, and there are calls inside clearSelection that will indirectly do an
        updateRendering. Also change code to make fewer assumptions about object lifetime.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15459 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dynamic/8952-reduction-expected.png [new file with mode: 0644]
LayoutTests/fast/dynamic/move-node-with-selection-expected.checksum [new file with mode: 0644]
LayoutTests/fast/dynamic/move-node-with-selection-expected.txt [new file with mode: 0644]
LayoutTests/fast/dynamic/move-node-with-selection.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/editing/SelectionController.cpp