Allow constructing a base PassRef with a derived Ref
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Nov 2014 19:07:11 +0000 (19:07 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Nov 2014 19:07:11 +0000 (19:07 +0000)
commitc23a1270f0ce89cb7966725fc39fff0da751de47
tree254b314481d13f91cf48e699867bb6557f7005a5
parent4f2ac753ed3fd6b1c0491c38f494746edcde5587
Allow constructing a base PassRef with a derived Ref
https://bugs.webkit.org/show_bug.cgi?id=138701

Reviewed by Andreas Kling

Source/WTF:

* wtf/PassRef.h:
(WTF::PassRef<T>::PassRef):

Tools:

* TestWebKitAPI/Tests/WTF/Ref.cpp:
(TestWebKitAPI::passWithPassRef):
(TestWebKitAPI::passWithPassRefPtr):
(TestWebKitAPI::TEST):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@176078 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WTF/ChangeLog
Source/WTF/wtf/PassRef.h
Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WTF/Ref.cpp