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

Unified Diff: public/web/WebNode.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/WebElementCollection.h ('k') | public/web/WebNodeList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebNode.h
diff --git a/public/web/WebNode.h b/public/web/WebNode.h
index 785514fce17a5be10f7d5d730c328e91722d120d..ba967ff76021db935fd113421c82374c7960c065 100644
--- a/public/web/WebNode.h
+++ b/public/web/WebNode.h
@@ -144,6 +144,18 @@ public:
WebNode(const PassRefPtrWillBeRawPtr<WebCore::Node>&);
WebNode& operator=(const PassRefPtrWillBeRawPtr<WebCore::Node>&);
operator PassRefPtrWillBeRawPtr<WebCore::Node>() const;
+#if ENABLE(OILPAN)
+ // This constructor enables creation of WebNodes from Members
+ // holding WebCore::Node-derived objects (this shows up in WebVector
+ // assignments, for instance.) It is needed because a RawPtr<T> constructor
+ // from a Member<U> isn't provided, hence the above constructor
+ // won't be usable.
+ template<typename U>
+ WebNode(const WebCore::Member<U>& other, EnsurePtrConvertibleArgDecl(U, WebCore::Node))
+ : m_private(other.get())
+ {
+ }
+#endif
#endif
#if BLINK_IMPLEMENTATION
« no previous file with comments | « public/web/WebElementCollection.h ('k') | public/web/WebNodeList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698