Index: Source/web/WebNodeCollection.cpp |
diff --git a/Source/web/WebNodeCollection.cpp b/Source/web/WebNodeCollection.cpp |
index 1715730473d822a39be3283c2f41dc4ee3b24766..2d10044b63c946356cfe1dddf738cd35f490434e 100644 |
--- a/Source/web/WebNodeCollection.cpp |
+++ b/Source/web/WebNodeCollection.cpp |
@@ -31,12 +31,11 @@ |
#include "config.h" |
#include "WebNodeCollection.h" |
+#include "WebElement.h" |
#include "core/dom/Node.h" |
#include "core/html/HTMLCollection.h" |
#include "wtf/PassRefPtr.h" |
-#include "WebNode.h" |
- |
using namespace WebCore; |
namespace blink { |
@@ -72,15 +71,15 @@ unsigned WebNodeCollection::length() const |
return m_private->length(); |
} |
-WebNode WebNodeCollection::nextItem() const |
+WebElement WebNodeCollection::nextItem() const |
{ |
- Node* node = m_private->item(m_current); |
- if (node) |
+ Element* element = m_private->item(m_current); |
+ if (element) |
m_current++; |
- return WebNode(node); |
+ return WebElement(element); |
} |
-WebNode WebNodeCollection::firstItem() const |
+WebElement WebNodeCollection::firstItem() const |
{ |
m_current = 0; |
return nextItem(); |