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

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

Issue 2953683004: Make Position::AfterNode() to take const Node& instead of Node* (Closed)
Patch Set: 2017-06-22T12:37:16 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/FormatBlockCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp b/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp
index 6b93ef65ba8194c49418d52b141e4ac23c69973e..434f829c5dcc4609c37f02d8f940e5f87884cf16 100644
--- a/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp
@@ -115,7 +115,7 @@ void FormatBlockCommand::FormatRange(const Position& start,
Position last_paragraph_in_block_node =
block_element->lastChild()
- ? Position::AfterNode(block_element->lastChild())
+ ? Position::AfterNode(*block_element->lastChild())
: Position();
bool was_end_of_paragraph =
IsEndOfParagraph(CreateVisiblePosition(last_paragraph_in_block_node));

Powered by Google App Engine
This is Rietveld 408576698