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

Unified Diff: third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.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/IndentOutdentCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp b/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
index bfaba532ec69c0ff69dcc508249319220ebc42bb..7bd2a581cf3f34c3488fb3a069bfae1ebf363356 100644
--- a/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
@@ -333,7 +333,7 @@ void IndentOutdentCommand::OutdentParagraph(EditingState* editing_state) {
end_of_paragraph_to_move =
CreateVisiblePosition(end_of_paragraph_to_move.ToPositionWithAffinity());
MoveParagraph(start_of_paragraph_to_move, end_of_paragraph_to_move,
- VisiblePosition::BeforeNode(placeholder), editing_state,
+ VisiblePosition::BeforeNode(*placeholder), editing_state,
kPreserveSelection);
}

Powered by Google App Engine
This is Rietveld 408576698