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

Unified Diff: third_party/WebKit/Source/core/editing/serializers/Serialization.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
« no previous file with comments | « third_party/WebKit/Source/core/editing/commands/TypingCommand.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/serializers/Serialization.cpp
diff --git a/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp b/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
index 22c3ba11b3ef1d034e2d74af2f4913c41306e4b1..3f628d20a30dd0e349e91ec2dd0e2977b7108295 100644
--- a/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
+++ b/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp
@@ -410,7 +410,7 @@ DocumentFragment* CreateFragmentFromMarkupWithContext(
tagged_document->AppendChild(root);
const EphemeralRange range(
- Position::AfterNode(node_before_context).ParentAnchoredEquivalent(),
+ Position::AfterNode(*node_before_context).ParentAnchoredEquivalent(),
Position::BeforeNode(*node_after_context).ParentAnchoredEquivalent());
Node* common_ancestor = range.CommonAncestorContainer();
« no previous file with comments | « third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698