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

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

Issue 2950273002: Make VisiblePosition::AfterNode() to take const Node& instead of Node* (Closed)
Patch Set: 2017-06-22T17:02:21 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
« no previous file with comments | « third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 28f1a25ff11b14d4fa896bef176939ebb80b7c55..bfaba532ec69c0ff69dcc508249319220ebc42bb 100644
--- a/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
@@ -109,7 +109,7 @@ bool IndentOutdentCommand::TryIndentingAsListItem(const Position& start,
const VisiblePosition& end_of_paragraph_to_move =
should_keep_selected_list
? CreateVisiblePosition(end)
- : VisiblePosition::AfterNode(selected_list_item->lastChild());
+ : VisiblePosition::AfterNode(*selected_list_item->lastChild());
// The insertion of |newList| may change the computed style of other
// elements, resulting in failure in visible canonicalization.
« no previous file with comments | « third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698