Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / dom / EmptyNodeList.cpp
index 26104fb..f42da56 100644 (file)
  */
 
 #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
@@ -47,4 +49,10 @@ Node* EmptyNodeList::virtualOwnerNode() const
     return &ownerNode();
 }
 
-} // namespace WebCore
+void EmptyNodeList::trace(Visitor* visitor)
+{
+    visitor->trace(m_owner);
+    NodeList::trace(visitor);
+}
+
+} // namespace blink