Index: Source/core/dom/TreeScopeAdopter.cpp |
diff --git a/Source/core/dom/TreeScopeAdopter.cpp b/Source/core/dom/TreeScopeAdopter.cpp |
index 6561b09fe58d81c2ddc0aea865c2f8bc008c8658..366b4af3fa15f793b06ee6ab9733cfd114fc46f2 100644 |
--- a/Source/core/dom/TreeScopeAdopter.cpp |
+++ b/Source/core/dom/TreeScopeAdopter.cpp |
@@ -51,7 +51,7 @@ void TreeScopeAdopter::moveTreeToNewScope(Node& root) const |
if (willMoveToNewDocument) |
oldDocument->incDOMTreeVersion(); |
- for (Node* node = &root; node; node = NodeTraversal::next(node, &root)) { |
+ for (Node* node = &root; node; node = NodeTraversal::next(*node, &root)) { |
updateTreeScope(*node); |
if (willMoveToNewDocument) |
@@ -83,7 +83,7 @@ void TreeScopeAdopter::moveTreeToNewScope(Node& root) const |
void TreeScopeAdopter::moveTreeToNewDocument(Node& root, Document& oldDocument, Document* newDocument) const |
{ |
- for (Node* node = &root; node; node = NodeTraversal::next(node, &root)) { |
+ for (Node* node = &root; node; node = NodeTraversal::next(*node, &root)) { |
moveNodeToNewDocument(*node, oldDocument, newDocument); |
for (ShadowRoot* shadow = node->youngestShadowRoot(); shadow; shadow = shadow->olderShadowRoot()) |
moveTreeToNewDocument(*shadow, oldDocument, newDocument); |