Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(461)

Unified Diff: Source/core/dom/DOMTokenList.h

Issue 258143002: Oilpan: move DOM string collection objects to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased to meet NodeRareData CL Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698