diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-01-11 10:03:25 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-01-11 10:03:25 +0100 |
commit | d11f84f5b5cdc0d92a08af01b13472fdd5f9acb9 (patch) | |
tree | b318cf594dc1da2fa48224005945c9157f35bb41 /Source/WebCore/html/HTMLCollection.h | |
parent | 6300a96eca9f152b379f1bcf3d9efdc5572d989a (diff) | |
download | qtwebkit-d11f84f5b5cdc0d92a08af01b13472fdd5f9acb9.tar.gz |
Imported WebKit commit 75bb2fc5882d2e1b3d5572c2961507996cbca5e3 (http://svn.webkit.org/repository/webkit/trunk@104681)
Diffstat (limited to 'Source/WebCore/html/HTMLCollection.h')
-rw-r--r-- | Source/WebCore/html/HTMLCollection.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Source/WebCore/html/HTMLCollection.h b/Source/WebCore/html/HTMLCollection.h index 76bc24102..fa3ff1ead 100644 --- a/Source/WebCore/html/HTMLCollection.h +++ b/Source/WebCore/html/HTMLCollection.h @@ -23,26 +23,29 @@ #ifndef HTMLCollection_h #define HTMLCollection_h +#include "Node.h" #include "CollectionType.h" -#include <wtf/RefCounted.h> #include <wtf/Forward.h> #include <wtf/HashMap.h> +#include <wtf/PassOwnPtr.h> #include <wtf/Vector.h> namespace WebCore { class Document; class Element; -class Node; class NodeList; -class HTMLCollection : public RefCounted<HTMLCollection> { +class HTMLCollection { public: - static PassRefPtr<HTMLCollection> create(Node* base, CollectionType); + static PassOwnPtr<HTMLCollection> create(Node* base, CollectionType); virtual ~HTMLCollection(); + void ref() { m_base->ref(); } + void deref() { m_base->deref(); } + unsigned length() const; - + virtual Node* item(unsigned index) const; virtual Node* nextItem() const; @@ -58,8 +61,6 @@ public: Node* base() const { return m_base; } CollectionType type() const { return static_cast<CollectionType>(m_type); } - void detachFromNode(); - protected: HTMLCollection(Node* base, CollectionType); |