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

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

Issue 2958483003: Make VisiblePosition::BeforeNode() to take const Node& instead of Node* (Closed)
Patch Set: 017-06-23T18:57:25 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 12c60526b0ba4560599f99367f21e1ab7dd83b66..c3d742efee6cddec3b66f3168d3f3b984da88eff 100644
--- a/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp
@@ -431,7 +431,7 @@ bool DeleteSelectionCommand::HandleSpecialCaseBRDelete(
if (upstream_start_is_br && downstream_start_is_br) {
GetDocument().UpdateStyleAndLayoutIgnorePendingStylesheets();
if (!(IsStartOfBlock(
- VisiblePosition::BeforeNode(node_after_upstream_start)) &&
+ VisiblePosition::BeforeNode(*node_after_upstream_start)) &&
IsEndOfBlock(
VisiblePosition::AfterNode(*node_after_upstream_start)))) {
starts_at_empty_line_ = true;

Powered by Google App Engine
This is Rietveld 408576698