<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: http://svn.webkit.org/repository/webkit/trunk@96834 268f45cc-cd09-0410-ab3c-d52691b4dbfc
5 files changed