| Index: Source/wtf/RefPtr.h
|
| diff --git a/Source/wtf/RefPtr.h b/Source/wtf/RefPtr.h
|
| index 22307b7033c03fc7d4f29a5dcb3e27669cc77bce..b431d7d23461f475970ea354e454a8bc0d048ece 100644
|
| --- a/Source/wtf/RefPtr.h
|
| +++ b/Source/wtf/RefPtr.h
|
| @@ -188,6 +188,16 @@ namespace WTF {
|
| return p.get();
|
| }
|
|
|
| + template<typename T> class RefPtrValuePeeker {
|
| + public:
|
| + ALWAYS_INLINE RefPtrValuePeeker(T* p): m_ptr(p) { }
|
| + template<typename U> RefPtrValuePeeker(const RefPtr<U>& p): m_ptr(p.get()) { }
|
| + template<typename U> RefPtrValuePeeker(const PassRefPtr<U>& p): m_ptr(p.get()) { }
|
| + ALWAYS_INLINE operator T*() const { return m_ptr; }
|
| + private:
|
| + T* m_ptr;
|
| + };
|
| +
|
| } // namespace WTF
|
|
|
| using WTF::RefPtr;
|
|
|