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

Unified Diff: third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp

Issue 2953683004: Make Position::AfterNode() to take const Node& instead of Node* (Closed)
Patch Set: 2017-06-22T12:37:16 Created 3 years, 6 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
Index: third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp
index 8f2fb52bf0fd11af80d6d974f40bde7d5c1c0429..f7b379316e968c001b30470d3f337ff63778af60 100644
--- a/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp
@@ -1523,7 +1523,7 @@ void ReplaceSelectionCommand::DoApply(EditingState* editing_state) {
}
SetEndingSelection(SelectionInDOMTree::Builder()
.Collapse(Position::AfterNode(
- inserted_nodes.LastLeafInserted()))
+ *inserted_nodes.LastLeafInserted()))
.Build());
// Select up to the paragraph separator that was added.
last_position_to_select =

Powered by Google App Engine
This is Rietveld 408576698