| Index: Source/core/dom/ChildNodeList.cpp
|
| diff --git a/Source/core/dom/ChildNodeList.cpp b/Source/core/dom/ChildNodeList.cpp
|
| index 4144c04cbe57fb38c5504c498ba9b4d4830a0515..372a2332ff5594542352905a3456f98b154720a4 100644
|
| --- a/Source/core/dom/ChildNodeList.cpp
|
| +++ b/Source/core/dom/ChildNodeList.cpp
|
| @@ -28,7 +28,7 @@
|
|
|
| namespace WebCore {
|
|
|
| -ChildNodeList::ChildNodeList(PassRefPtr<Node> node)
|
| +ChildNodeList::ChildNodeList(PassRefPtr<ContainerNode> node)
|
| : LiveNodeList(node, ChildNodeListType, DoNotInvalidateOnAttributeChanges)
|
| {
|
| }
|
| @@ -45,4 +45,9 @@ bool ChildNodeList::nodeMatches(Element* testNode) const
|
| return testNode->parentNode() == rootNode();
|
| }
|
|
|
| +EmptyNodeList::~EmptyNodeList()
|
| +{
|
| + m_owner->nodeLists()->removeEmptyChildNodeList(this);
|
| +}
|
| +
|
| } // namespace WebCore
|
|
|