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 794b7cedd64da049c5e3a5630dec9f97d295c63d..797c7bcaf730a48f0917e0d64e669c5ef2062c80 100644 |
--- a/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp |
+++ b/third_party/WebKit/Source/core/editing/serializers/Serialization.cpp |
@@ -408,12 +408,11 @@ DocumentFragment* createFragmentFromMarkupWithContext( |
root->appendChild(taggedFragment); |
taggedDocument->appendChild(root); |
- Range* range = Range::create( |
- *taggedDocument, |
+ EphemeralRange range = EphemeralRange( |
Xiaocheng
2017/03/02 20:00:16
nit: Initialize range as either
const EphemeralRa
|
Position::afterNode(nodeBeforeContext).parentAnchoredEquivalent(), |
Position::beforeNode(nodeAfterContext).parentAnchoredEquivalent()); |
- Node* commonAncestor = range->commonAncestorContainer(); |
+ Node* commonAncestor = range.commonAncestorContainer(); |
HTMLElement* specialCommonAncestor = |
ancestorToRetainStructureAndAppearanceWithNoLayoutObject(commonAncestor); |