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 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/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 dda03865f00eabbec295fdab1a6c738f6752f45a..5f3d1d53a905c53e2e163c9e9dcdfb070685ef83 100644
--- a/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp
@@ -236,7 +236,7 @@ void IndentOutdentCommand::OutdentParagraph(EditingState* editing_state) {
? position_in_enclosing_block
: StartOfBlock(position_in_enclosing_block);
VisiblePosition last_position_in_enclosing_block =
- VisiblePosition::LastPositionInNode(enclosing_element);
+ VisiblePosition::LastPositionInNode(*enclosing_element);
VisiblePosition end_of_enclosing_block =
EndOfBlock(last_position_in_enclosing_block);
if (visible_start_of_paragraph.DeepEquivalent() ==

Powered by Google App Engine
This is Rietveld 408576698