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

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

Issue 2958523002: Make Position::LastOffsetInNode() to take const Node& (Closed)
Patch Set: 2017-06-23T18:50:42 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 3635296fc86f3c0389fc2a47d5afeae507785099..228be4f8b341c7635764382d9c5d12719c11391a 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
@@ -421,7 +421,8 @@ bool InsertListCommand::DoApplyForSingleParagraph(
if (range_start_is_in_list && new_list)
current_selection.setStart(new_list, 0, IGNORE_EXCEPTION_FOR_TESTING);
if (range_end_is_in_list && new_list) {
- current_selection.setEnd(new_list, Position::LastOffsetInNode(new_list),
+ current_selection.setEnd(new_list,
+ Position::LastOffsetInNode(*new_list),
IGNORE_EXCEPTION_FOR_TESTING);
}

Powered by Google App Engine
This is Rietveld 408576698