Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Unified Diff: third_party/WebKit/Source/core/editing/DragCaret.cpp

Issue 2813883005: Remove ClearSelection() from DragCaret::NodeWillBeRemoved() (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/editing/DragCaret.cpp
diff --git a/third_party/WebKit/Source/core/editing/DragCaret.cpp b/third_party/WebKit/Source/core/editing/DragCaret.cpp
index d3620bca3e272e627a56d0ea52ff027793e71a33..5cb4516dbd6e1c97b94733ab79b8d0fba86ac5db 100644
--- a/third_party/WebKit/Source/core/editing/DragCaret.cpp
+++ b/third_party/WebKit/Source/core/editing/DragCaret.cpp
@@ -82,7 +82,6 @@ void DragCaret::NodeChildrenWillBeRemoved(ContainerNode& container) {
return;
if (!container.IsShadowIncludingInclusiveAncestorOf(anchor_node))
return;
- position_.GetDocument()->GetLayoutViewItem().ClearSelection();
Clear();
}
@@ -94,7 +93,6 @@ void DragCaret::NodeWillBeRemoved(Node& node) {
return;
if (!node.IsShadowIncludingInclusiveAncestorOf(anchor_node))
return;
- position_.GetDocument()->GetLayoutViewItem().ClearSelection();
Clear();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698