Index: Source/core/editing/markup.cpp |
diff --git a/Source/core/editing/markup.cpp b/Source/core/editing/markup.cpp |
index 1a02d43f97b3636d6fa2d2b8f4fd01bc3cd0d1d4..ba34662827a84dbc9c4cab77f74257b6d75085ff 100644 |
--- a/Source/core/editing/markup.cpp |
+++ b/Source/core/editing/markup.cpp |
@@ -363,7 +363,7 @@ Node* StyledMarkupAccumulator::traverseNodesForSerialization(Node* startNode, No |
continue; |
if (!n->renderer() && !enclosingNodeWithTag(firstPositionInOrBeforeNode(n), selectTag)) { |
- next = NodeTraversal::nextSkippingChildren(n); |
+ next = NodeTraversal::nextSkippingChildren(*n); |
// Don't skip over pastEnd. |
if (pastEnd && pastEnd->isDescendantOf(n)) |
next = pastEnd; |
@@ -678,7 +678,7 @@ static void trimFragment(DocumentFragment* fragment, Node* nodeBeforeContext, No |
next = NodeTraversal::next(*node); |
continue; |
} |
- next = NodeTraversal::nextSkippingChildren(node.get()); |
+ next = NodeTraversal::nextSkippingChildren(*node); |
ASSERT(!node->contains(nodeAfterContext)); |
node->parentNode()->removeChild(node.get(), ASSERT_NO_EXCEPTION); |
if (nodeBeforeContext == node) |
@@ -687,7 +687,7 @@ static void trimFragment(DocumentFragment* fragment, Node* nodeBeforeContext, No |
ASSERT(nodeAfterContext->parentNode()); |
for (RefPtr<Node> node = nodeAfterContext; node; node = next) { |
- next = NodeTraversal::nextSkippingChildren(node.get()); |
+ next = NodeTraversal::nextSkippingChildren(*node); |
node->parentNode()->removeChild(node.get(), ASSERT_NO_EXCEPTION); |
} |
} |