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

Unified Diff: Source/core/dom/NamedNodeMap.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/ElementRareData.cpp ('k') | Source/core/dom/NamedNodeMap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/NamedNodeMap.h
diff --git a/Source/core/dom/NamedNodeMap.h b/Source/core/dom/NamedNodeMap.h
index d167e77eec2956fb55c2c15d35c6325d64e3bbc1..fc908cd19b98b9d54e2a7f3ddfa9f0143c5c4ae2 100644
--- a/Source/core/dom/NamedNodeMap.h
+++ b/Source/core/dom/NamedNodeMap.h
@@ -26,6 +26,7 @@
#define NamedNodeMap_h
#include "bindings/v8/ScriptWrappable.h"
+#include "core/dom/Element.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/PassRefPtr.h"
#include "wtf/text/AtomicString.h"
@@ -33,20 +34,21 @@
namespace WebCore {
class Node;
-class Element;
class ExceptionState;
-class NamedNodeMap : public ScriptWrappable {
- WTF_MAKE_FAST_ALLOCATED;
+class NamedNodeMap FINAL : public NoBaseWillBeGarbageCollectedFinalized<NamedNodeMap>, public ScriptWrappable {
+ WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
friend class Element;
public:
- static PassOwnPtr<NamedNodeMap> create(Element* element)
+ static PassOwnPtrWillBeRawPtr<NamedNodeMap> create(Element* element)
{
- return adoptPtr(new NamedNodeMap(element));
+ return adoptPtrWillBeNoop(new NamedNodeMap(element));
}
+#if !ENABLE(OILPAN)
void ref();
void deref();
+#endif
// Public DOM interface.
@@ -64,6 +66,8 @@ public:
Element* element() const { return m_element; }
+ void trace(Visitor*);
+
private:
explicit NamedNodeMap(Element* element)
: m_element(element)
@@ -73,7 +77,7 @@ private:
ScriptWrappable::init(this);
}
- Element* m_element;
+ RawPtrWillBeMember<Element> m_element;
};
} // namespace WebCore
« no previous file with comments | « Source/core/dom/ElementRareData.cpp ('k') | Source/core/dom/NamedNodeMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698