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

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

Issue 2957833004: Make VisiblePosition::LastPositionInNode() to take const Node& instead of Node* (Closed)
Patch Set: 2017-06-27T15:28:02 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 5d6f8c884035865639dd5617b70bf4788feb49c6..a21f8c6cea2b7e25b942efdf82a109f06881ddeb 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
@@ -395,7 +395,7 @@ bool InsertListCommand::DoApplyForSingleParagraph(
MoveParagraphWithClones(
VisiblePosition::FirstPositionInNode(*list_element),
- VisiblePosition::LastPositionInNode(list_element), new_list,
+ VisiblePosition::LastPositionInNode(*list_element), new_list,
outer_block, editing_state);
if (editing_state->IsAborted())
return false;
@@ -461,7 +461,7 @@ void InsertListCommand::UnlistifyParagraph(
DCHECK(list_child_node);
if (isHTMLLIElement(*list_child_node)) {
start = VisiblePosition::FirstPositionInNode(*list_child_node);
- end = VisiblePosition::LastPositionInNode(list_child_node);
+ end = VisiblePosition::LastPositionInNode(*list_child_node);
next_list_child = list_child_node->nextSibling();
previous_list_child = list_child_node->previousSibling();
} else {

Powered by Google App Engine
This is Rietveld 408576698