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

Unified Diff: third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.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/DeleteSelectionCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
index 5be65c66a173b60bdc950ec29caf7ea5bf6b2df2..e064273dc5ce623303b07dcd9c5991f1fe034154 100644
--- a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
@@ -129,7 +129,7 @@ void DeleteSelectionCommand::InitializeStartEnd(Position& start,
if (isHTMLHRElement(*start.AnchorNode()))
start = Position::BeforeNode(*start.AnchorNode());
else if (isHTMLHRElement(*end.AnchorNode()))
- end = Position::AfterNode(end.AnchorNode());
+ end = Position::AfterNode(*end.AnchorNode());
// FIXME: This is only used so that moveParagraphs can avoid the bugs in
// special element expansion.

Powered by Google App Engine
This is Rietveld 408576698