Index: Source/WebCore/dom/NodeIterator.cpp |
diff --git a/Source/WebCore/dom/NodeIterator.cpp b/Source/WebCore/dom/NodeIterator.cpp |
index d03724d000f26e1d1256ede3db103ecc9c6e2cbd..a0ca3cb1e57a4f348a28a2f9dbcaae6be2fc9ec0 100644 |
--- a/Source/WebCore/dom/NodeIterator.cpp |
+++ b/Source/WebCore/dom/NodeIterator.cpp |
@@ -79,6 +79,7 @@ NodeIterator::NodeIterator(PassRefPtr<Node> rootNode, unsigned whatToShow, PassR |
{ |
// Document type nodes may have a null document. But since they can't have children, there is no need to listen for modifications to these. |
ASSERT(root()->document() || root()->nodeType() == Node::DOCUMENT_TYPE_NODE); |
+ ScriptWrappable::init(this); |
if (Document* ownerDocument = root()->document()) |
ownerDocument->attachNodeIterator(this); |
} |