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

Unified Diff: public/web/WebNodeList.h

Issue 280123002: Oilpan: move LiveNodeList collections to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Have NodeRareData clear out NodeListsNodeData instead. 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 | « public/web/WebNode.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebNodeList.h
diff --git a/public/web/WebNodeList.h b/public/web/WebNodeList.h
index 80484366318afa51219c17f7301e4ea0f0b28f31..96ad0addb097838b9e43a37577962b8a1888281e 100644
--- a/public/web/WebNodeList.h
+++ b/public/web/WebNodeList.h
@@ -31,10 +31,12 @@
#ifndef WebNodeList_h
#define WebNodeList_h
-#include "../platform/WebCommon.h"
+#include "public/platform/WebCommon.h"
+#include "public/platform/WebPrivatePtr.h"
namespace WebCore { class NodeList; }
#if BLINK_IMPLEMENTATION
+#include "platform/heap/Handle.h"
namespace WTF { template <typename T> class PassRefPtr; }
#endif
@@ -46,8 +48,8 @@ class WebNodeList {
public:
~WebNodeList() { reset(); }
- WebNodeList() : m_private(0) { }
- WebNodeList(const WebNodeList& n) : m_private(0) { assign(n); }
+ WebNodeList() { }
+ WebNodeList(const WebNodeList& n) { assign(n); }
WebNodeList& operator=(const WebNodeList& n)
{
assign(n);
@@ -61,12 +63,12 @@ public:
BLINK_EXPORT WebNode item(size_t) const;
#if BLINK_IMPLEMENTATION
- WebNodeList(const WTF::PassRefPtr<WebCore::NodeList>&);
+ WebNodeList(const PassRefPtrWillBeRawPtr<WebCore::NodeList>&);
+ WebNodeList& operator=(const PassRefPtrWillBeRawPtr<WebCore::NodeList>&);
#endif
private:
- void assign(WebCore::NodeList*);
- WebCore::NodeList* m_private;
+ WebPrivatePtr<WebCore::NodeList> m_private;
};
} // namespace blink
« no previous file with comments | « public/web/WebNode.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698