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

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: Rebase + final adjustments 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
« no previous file with comments | « Source/core/dom/DOMStringMap.idl ('k') | Source/core/dom/DOMTokenList.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/core/dom/DOMStringMap.idl ('k') | Source/core/dom/DOMTokenList.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698