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

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

Issue 2950273002: Make VisiblePosition::AfterNode() to take const Node& instead of Node* (Closed)
Patch Set: 2017-06-22T17:02:21 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 e064273dc5ce623303b07dcd9c5991f1fe034154..12c60526b0ba4560599f99367f21e1ab7dd83b66 100644
--- a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
@@ -433,7 +433,7 @@ bool DeleteSelectionCommand::HandleSpecialCaseBRDelete(
if (!(IsStartOfBlock(
VisiblePosition::BeforeNode(node_after_upstream_start)) &&
IsEndOfBlock(
- VisiblePosition::AfterNode(node_after_upstream_start)))) {
+ VisiblePosition::AfterNode(*node_after_upstream_start)))) {
starts_at_empty_line_ = true;
ending_position_ = downstream_end_;
}

Powered by Google App Engine
This is Rietveld 408576698