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

Unified Diff: third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.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/ApplyBlockElementCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp b/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp
index 6e6fdf755335131d9c205a407bbb44fe666084e4..a1c3139ee58ae6b9a24069ee7d76f7f8dfffada0 100644
--- a/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp
@@ -151,7 +151,7 @@ void ApplyBlockElementCommand::FormatSelection(
if (editing_state->IsAborted())
return;
SetEndingSelection(SelectionInDOMTree::Builder()
- .Collapse(Position::BeforeNode(placeholder))
+ .Collapse(Position::BeforeNode(*placeholder))
.SetIsDirectional(EndingSelection().IsDirectional())
.Build());
return;

Powered by Google App Engine
This is Rietveld 408576698