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

Unified Diff: Source/core/dom/DOMSettableTokenList.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/bindings/v8/IDBBindingUtilities.cpp ('k') | Source/core/dom/DOMStringList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DOMSettableTokenList.h
diff --git a/Source/core/dom/DOMSettableTokenList.h b/Source/core/dom/DOMSettableTokenList.h
index 2a59e85b8197b562e941aa7bc0716fbef7534ead..bba9691d7a6b43e66e6a69fa6f9cd2752cc4e2be 100644
--- a/Source/core/dom/DOMSettableTokenList.h
+++ b/Source/core/dom/DOMSettableTokenList.h
@@ -27,6 +27,7 @@
#include "core/dom/DOMTokenList.h"
#include "core/dom/SpaceSplitString.h"
+#include "platform/heap/Handle.h"
#include "wtf/RefCounted.h"
#include "wtf/text/AtomicString.h"
@@ -34,17 +35,24 @@ namespace WebCore {
class ExceptionState;
-class DOMSettableTokenList FINAL : public DOMTokenList, public RefCounted<DOMSettableTokenList> {
- WTF_MAKE_FAST_ALLOCATED;
+class DOMSettableTokenList FINAL
+ : public DOMTokenList
+#if !ENABLE(OILPAN)
+ , public RefCounted<DOMSettableTokenList>
+#endif
+ {
+ WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
public:
- static PassRefPtr<DOMSettableTokenList> create()
+ static PassRefPtrWillBeRawPtr<DOMSettableTokenList> create()
{
- return adoptRef(new DOMSettableTokenList());
+ return adoptRefWillBeNoop(new DOMSettableTokenList());
}
virtual ~DOMSettableTokenList();
+#if !ENABLE(OILPAN)
virtual void ref() OVERRIDE { RefCounted<DOMSettableTokenList>::ref(); }
virtual void deref() OVERRIDE { RefCounted<DOMSettableTokenList>::deref(); }
+#endif
virtual unsigned length() const OVERRIDE { return m_tokens.size(); }
virtual const AtomicString item(unsigned index) const OVERRIDE;
« no previous file with comments | « Source/bindings/v8/IDBBindingUtilities.cpp ('k') | Source/core/dom/DOMStringList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698