Index: Source/core/dom/NodeList.cpp |
diff --git a/Source/core/dom/NodeList.cpp b/Source/core/dom/NodeList.cpp |
index 689b06fe47c33422dd66b4136855b0d03f62d114..efd9564e7d9538348b4bf475c6ea4c05dc3de69a 100644 |
--- a/Source/core/dom/NodeList.cpp |
+++ b/Source/core/dom/NodeList.cpp |
@@ -31,6 +31,7 @@ |
#include "config.h" |
#include "core/dom/NodeList.h" |
+#include "core/dom/ChildNodeList.h" |
#include "core/dom/EmptyNodeList.h" |
#include "core/dom/LiveNodeList.h" |
#include "core/dom/Node.h" |
@@ -41,6 +42,8 @@ Node* NodeList::ownerNode() const |
{ |
if (isLiveNodeList()) |
return static_cast<const LiveNodeList*>(this)->ownerNode(); |
+ if (isChildNodeList()) |
+ return static_cast<const ChildNodeList*>(this)->ownerNode(); |
if (isEmptyNodeList()) |
return static_cast<const EmptyNodeList*>(this)->ownerNode(); |
return 0; |