Index: Source/core/dom/DOMTokenList.h |
diff --git a/Source/core/dom/DOMTokenList.h b/Source/core/dom/DOMTokenList.h |
index bd5204e9f12f726caace85316090e240137158de..8729b82d0bae8813483197d3e244eb25b755c421 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,8 +35,9 @@ 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() |
{ |
@@ -43,8 +45,10 @@ public: |
} |
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; |