Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / web / WebNode.cpp
index d069fbd..780cc6e 100644 (file)
@@ -37,6 +37,7 @@
 #include "WebDOMEventListener.h"
 #include "WebDocument.h"
 #include "WebElement.h"
+#include "WebElementCollection.h"
 #include "WebFrameImpl.h"
 #include "WebNodeList.h"
 #include "WebPluginContainer.h"
 #include "bindings/v8/ExceptionState.h"
 #include "core/dom/Document.h"
 #include "core/dom/Element.h"
-#include "core/dom/EmptyNodeList.h"
-#include "core/events/Event.h"
 #include "core/dom/Node.h"
 #include "core/dom/NodeList.h"
 #include "core/editing/markup.h"
+#include "core/events/Event.h"
+#include "core/html/HTMLCollection.h"
 #include "core/rendering/RenderObject.h"
 #include "core/rendering/RenderWidget.h"
 #include "platform/Widget.h"
@@ -191,11 +192,11 @@ void WebNode::simulateClick()
     m_private->dispatchSimulatedClick(0);
 }
 
-WebNodeList WebNode::getElementsByTagName(const WebString& tag) const
+WebElementCollection WebNode::getElementsByTagName(const WebString& tag) const
 {
     if (m_private->isContainerNode())
-        return WebNodeList(toContainerNode(m_private.get())->getElementsByTagName(tag));
-    return WebNodeList(EmptyNodeList::create(m_private.get()));
+        return WebElementCollection(toContainerNode(m_private.get())->getElementsByTagName(tag));
+    return WebElementCollection();
 }
 
 WebElement WebNode::querySelector(const WebString& tag, WebExceptionCode& ec) const