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

Unified Diff: third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.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/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 3a156401f1a5a73f426182251b4ee6822a63bcae..19b8a96322398318c1b139edea9114fdd30e6ad2 100644
--- a/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp
@@ -1613,7 +1613,7 @@ void ApplyStyleCommand::SplitTextElementAtEnd(const Position& start,
should_update_start
? Position(ToText(first_text_node), start.OffsetInContainerNode())
: start;
- UpdateStartEnd(new_start, Position::AfterNode(first_text_node));
+ UpdateStartEnd(new_start, Position::AfterNode(*first_text_node));
}
bool ApplyStyleCommand::ShouldSplitTextElement(Element* element,

Powered by Google App Engine
This is Rietveld 408576698