<rdar://problem/10232866> Assertion failure beneath blockSelectionGaps() when a selec...
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 6 Oct 2011 18:04:27 +0000 (18:04 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 6 Oct 2011 18:04:27 +0000 (18:04 +0000)
commitb0b648d160e616d99ecb887c4af80220a2b6273e
treeff35e85e081c86127c8539e3fa16a44220be5944
parent0418709d5ab34e5986bed316e651afb188ed01ae
<rdar://problem/10232866> Assertion failure beneath blockSelectionGaps() when a selected node is removed

Reviewed by Ryosuke Niwa.

Source/WebCore:

Test: editing/selection/invalid-in-RenderView.html

* editing/FrameSelection.cpp:
(WebCore::FrameSelection::updateAppearance): Ensure that the VisibleSelection used to set the selection
in the RenderView is valid, by reconstructing it from the current selection.

LayoutTests:

* editing/selection/invalid-in-RenderView-expected.txt: Added.
* editing/selection/invalid-in-RenderView.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@96834 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/selection/invalid-in-RenderView-expected.txt [new file with mode: 0644]
LayoutTests/editing/selection/invalid-in-RenderView.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/editing/FrameSelection.cpp