Index: third_party/WebKit/Source/core/editing/DOMSelection.cpp |
diff --git a/third_party/WebKit/Source/core/editing/DOMSelection.cpp b/third_party/WebKit/Source/core/editing/DOMSelection.cpp |
index 9d5c79129f8a36f0c44ffb284c4f318fa609f68a..a4e99f63858d1afefef65013914b0e6c14518a8b 100644 |
--- a/third_party/WebKit/Source/core/editing/DOMSelection.cpp |
+++ b/third_party/WebKit/Source/core/editing/DOMSelection.cpp |
@@ -672,12 +672,8 @@ void DOMSelection::deleteFromDocument() { |
if (!selectedRange) |
return; |
+ // |selectedRange| may point nodes in a different root. |
selectedRange->deleteContents(ASSERT_NO_EXCEPTION); |
- |
- setBaseAndExtent(selectedRange->startContainer(), |
- selectedRange->startOffset(), |
- selectedRange->startContainer(), |
- selectedRange->startOffset(), ASSERT_NO_EXCEPTION); |
} |
bool DOMSelection::containsNode(const Node* n, bool allowPartial) const { |