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

Unified Diff: Source/platform/heap/Handle.h

Issue 313813002: Oilpan: Replace RefPtrs to Node and its subclasses in core/dom/ with Oilpan transtion types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
Index: Source/platform/heap/Handle.h
diff --git a/Source/platform/heap/Handle.h b/Source/platform/heap/Handle.h
index 6a46cef73a1b9bbf1ee303b986977ceb9d7d81f2..203780194d341006cc438cfc192b83c1c6030215 100644
--- a/Source/platform/heap/Handle.h
+++ b/Source/platform/heap/Handle.h
@@ -552,7 +552,8 @@ public:
T* operator->() const { return m_raw; }
T& operator*() const { return *m_raw; }
- operator RawPtr<T>() const { return m_raw; }
+ template<typename U>
+ operator RawPtr<U>() const { return m_raw; }
zerny-chromium 2014/06/04 09:28:18 Generalizing this operator causes ambiguity since
tkent 2014/06/05 00:22:27 Without this, we need to add dozens of .get() to c
template<typename U>
Member& operator=(const Persistent<U>& other)

Powered by Google App Engine
This is Rietveld 408576698