Index: Source/core/dom/DOMTokenList.h |
diff --git a/Source/core/dom/DOMTokenList.h b/Source/core/dom/DOMTokenList.h |
index bd5204e9f12f726caace85316090e240137158de..1ab1b7c2a5d1231ee789678f3b467af0191bba08 100644 |
--- a/Source/core/dom/DOMTokenList.h |
+++ b/Source/core/dom/DOMTokenList.h |
@@ -26,6 +26,7 @@ |
#define DOMTokenList_h |
#include "bindings/v8/ScriptWrappable.h" |
+#include "platform/heap/Handle.h" |
#include "wtf/Vector.h" |
#include "wtf/text/AtomicString.h" |
@@ -34,17 +35,20 @@ namespace WebCore { |
class Element; |
class ExceptionState; |
-class DOMTokenList : public ScriptWrappable { |
- WTF_MAKE_NONCOPYABLE(DOMTokenList); WTF_MAKE_FAST_ALLOCATED; |
+class DOMTokenList : public NoBaseWillBeGarbageCollectedFinalized<DOMTokenList>, public ScriptWrappable { |
+ WTF_MAKE_NONCOPYABLE(DOMTokenList); |
+ WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
public: |
DOMTokenList() |
{ |
ScriptWrappable::init(this); |
} |
- virtual ~DOMTokenList() { }; |
+ virtual ~DOMTokenList() { } |
+#if !ENABLE(OILPAN) |
virtual void ref() = 0; |
virtual void deref() = 0; |
+#endif |
virtual unsigned length() const = 0; |
virtual const AtomicString item(unsigned index) const = 0; |
@@ -61,6 +65,8 @@ public: |
virtual Element* element() { return 0; } |
+ virtual void trace(Visitor*) { } |
+ |
protected: |
virtual const AtomicString& value() const = 0; |
virtual void setValue(const AtomicString&) = 0; |