*/
#include "config.h"
-#include "EmptyNodeList.h"
+#include "core/dom/EmptyNodeList.h"
#include "core/dom/Node.h"
#include "core/dom/NodeRareData.h"
-namespace WebCore {
+namespace blink {
EmptyNodeList::~EmptyNodeList()
{
+#if !ENABLE(OILPAN)
m_owner->nodeLists()->removeEmptyChildNodeList(this);
+#endif
}
Node* EmptyNodeList::virtualOwnerNode() const
return &ownerNode();
}
-} // namespace WebCore
+void EmptyNodeList::trace(Visitor* visitor)
+{
+ visitor->trace(m_owner);
+ NodeList::trace(visitor);
+}
+
+} // namespace blink