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

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

Issue 2952983002: Make Position::FirstPositionInNode() to take const Node& instead of Node* (Closed)
Patch Set: 2017-06-23T10:37:43 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/InsertListCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
index e89026a1a1419a939bc7400641f15014fa7fe1ba..3635296fc86f3c0389fc2a47d5afeae507785099 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
@@ -426,7 +426,7 @@ bool InsertListCommand::DoApplyForSingleParagraph(
}
SetEndingSelection(SelectionInDOMTree::Builder()
- .Collapse(Position::FirstPositionInNode(new_list))
+ .Collapse(Position::FirstPositionInNode(*new_list))
.Build());
return true;

Powered by Google App Engine
This is Rietveld 408576698