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

Unified Diff: third_party/WebKit/Source/core/editing/commands/TypingCommand.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/TypingCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp b/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp
index d7b4419d7256b5d043d4add47a3f50f2603a3b1c..3a7f22ca9eda1a0fea0c744a5b5a4a42dd52d6b3 100644
--- a/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp
@@ -913,7 +913,7 @@ void TypingCommand::ForwardDeleteKeyPressed(TextGranularity granularity,
SelectionInDOMTree::Builder()
.SetBaseAndExtentDeprecated(
EndingSelection().End(),
- Position::AfterNode(downstream_end.ComputeContainerNode()))
+ Position::AfterNode(*downstream_end.ComputeContainerNode()))
.SetIsDirectional(EndingSelection().IsDirectional())
.Build());
TypingAddedToOpenCommand(kForwardDeleteKey);

Powered by Google App Engine
This is Rietveld 408576698