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
+2011-10-06 Dan Bernstein <mitz@apple.com>
+
+ <rdar://problem/10232866> Assertion failure beneath blockSelectionGaps() when a selected node is removed
+
+ Reviewed by Ryosuke Niwa.
+
+ * editing/selection/invalid-in-RenderView-expected.txt: Added.
+ * editing/selection/invalid-in-RenderView.html: Added.
+
2011-10-06 Alejandro G. Castro <alex@igalia.com>
[WK2] [GTK] Add Skipped file for Webkit2 test runner
--- /dev/null
+<script>
+ var frameset;
+ var topFrame;
+ var selection;
+
+ if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+
+ onload = function()
+ {
+ frameset = document.getElementById("frameset");
+ topFrame = document.getElementById("topFrame");
+ selection = getSelection();
+ selection.setBaseAndExtent(frameset.parentNode, 0, frameset, 4);
+ topFrame.parentNode.removeChild(topFrame);
+ }
+</script>
+<frameset id="frameset">
+ <frame id="topFrame"/>
+ <frame/>
+</frameset>
+2011-10-06 Dan Bernstein <mitz@apple.com>
+
+ <rdar://problem/10232866> Assertion failure beneath blockSelectionGaps() when a selected node is removed
+
+ Reviewed by Ryosuke Niwa.
+
+ 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.
+
2011-10-06 Andreas Kling <kling@webkit.org>
InlineBox's virtualLogicalHeight() partially limited to builds with SVG.
if (!view)
return;
- VisibleSelection selection = this->selection();
+ VisibleSelection selection(m_selection.visibleStart(), m_selection.visibleEnd());
if (!selection.isRange()) {
view->clearSelection();