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