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

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

Issue 2962473002: Make Position::LastPositionInNode() to take const Node& instead of Node* (Closed)
Patch Set: 2017-06-26T14:00:00 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/ApplyStyleCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
index 8682b1f48c8cb8b2768572ebabbf15fbd4940d53..8e46daf83b86448e627e7d3f50ccfff0d86f68e3 100644
--- a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
@@ -1573,7 +1573,7 @@ void ApplyStyleCommand::SplitTextAtEnd(const Position& start,
should_update_start
? Position(ToText(prev_node), start.OffsetInContainerNode())
: start;
- UpdateStartEnd(new_start, Position::LastPositionInNode(prev_node));
+ UpdateStartEnd(new_start, Position::LastPositionInNode(*prev_node));
}
void ApplyStyleCommand::SplitTextElementAtStart(const Position& start,

Powered by Google App Engine
This is Rietveld 408576698