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

Unified Diff: third_party/WebKit/Source/core/editing/commands/InsertListCommand.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/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..1daf220372b4852c13b246c14b9669cb1c861369 100644
--- a/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp
@@ -527,7 +527,7 @@ void InsertListCommand::UnlistifyParagraph(
start = CreateVisiblePosition(start_position);
end = CreateVisiblePosition(end_position);
- VisiblePosition insertion_point = VisiblePosition::BeforeNode(placeholder);
+ VisiblePosition insertion_point = VisiblePosition::BeforeNode(*placeholder);
MoveParagraphs(start, end, insertion_point, editing_state, kPreserveSelection,
kPreserveStyle, list_child_node);
}
@@ -680,7 +680,7 @@ void InsertListCommand::MoveParagraphOverPositionIntoEmptyListItem(
StartOfParagraph(valid_pos, kCanSkipOverEditingBoundary);
const VisiblePosition& end =
EndOfParagraph(valid_pos, kCanSkipOverEditingBoundary);
- MoveParagraph(start, end, VisiblePosition::BeforeNode(placeholder),
+ MoveParagraph(start, end, VisiblePosition::BeforeNode(*placeholder),
editing_state, kPreserveSelection);
}

Powered by Google App Engine
This is Rietveld 408576698