Index: public/web/WebElementCollection.h |
diff --git a/public/web/WebNodeCollection.h b/public/web/WebElementCollection.h |
similarity index 81% |
copy from public/web/WebNodeCollection.h |
copy to public/web/WebElementCollection.h |
index 74938791fb4570b66fe44698203673454f8d29ec..e6eaed571f02bd168284ed4e643a3578647468f7 100644 |
--- a/public/web/WebNodeCollection.h |
+++ b/public/web/WebElementCollection.h |
@@ -1,5 +1,6 @@ |
/* |
* Copyright (C) 2009 Google Inc. All rights reserved. |
+ * Copyright (C) 2014 Samsung Electronics. All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions are |
@@ -28,8 +29,8 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef WebNodeCollection_h |
-#define WebNodeCollection_h |
+#ifndef WebElementCollection_h |
+#define WebElementCollection_h |
#include "../platform/WebCommon.h" |
@@ -42,13 +43,13 @@ namespace blink { |
class WebElement; |
// Provides readonly access to some properties of a DOM node. |
-class WebNodeCollection { |
+class WebElementCollection { |
public: |
- ~WebNodeCollection() { reset(); } |
+ ~WebElementCollection() { reset(); } |
- WebNodeCollection() : m_private(0), m_current(0) { } |
- WebNodeCollection(const WebNodeCollection& n) : m_private(0) { assign(n); } |
- WebNodeCollection& operator=(const WebNodeCollection& n) |
+ WebElementCollection() : m_private(0), m_current(0) { } |
+ WebElementCollection(const WebElementCollection& n) : m_private(0) { assign(n); } |
+ WebElementCollection& operator=(const WebElementCollection& n) |
{ |
assign(n); |
return *this; |
@@ -57,14 +58,14 @@ public: |
bool isNull() const { return !m_private; } |
BLINK_EXPORT void reset(); |
- BLINK_EXPORT void assign(const WebNodeCollection&); |
+ BLINK_EXPORT void assign(const WebElementCollection&); |
BLINK_EXPORT unsigned length() const; |
BLINK_EXPORT WebElement nextItem() const; |
BLINK_EXPORT WebElement firstItem() const; |
#if BLINK_IMPLEMENTATION |
- WebNodeCollection(const WTF::PassRefPtr<WebCore::HTMLCollection>&); |
+ WebElementCollection(const WTF::PassRefPtr<WebCore::HTMLCollection>&); |
#endif |
private: |