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

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

Issue 2950053002: Make Position::BeforeNode() to take const Node& instead of Node* (Closed)
Patch Set: 2017-06-21T17:56:36 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 29da94949285fd8043c0812f0b7723914d8804a7..5be65c66a173b60bdc950ec29caf7ea5bf6b2df2 100644
--- a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
@@ -127,7 +127,7 @@ void DeleteSelectionCommand::InitializeStartEnd(Position& start,
// beginning of the previous line, or (HR,0) when forward deleting, but in
// these cases, we want to delete it, so manually expand the selection
if (isHTMLHRElement(*start.AnchorNode()))
- start = Position::BeforeNode(start.AnchorNode());
+ start = Position::BeforeNode(*start.AnchorNode());
else if (isHTMLHRElement(*end.AnchorNode()))
end = Position::AfterNode(end.AnchorNode());

Powered by Google App Engine
This is Rietveld 408576698