Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Tweak WeakObjCPtr
https://bugs.webkit.org/show_bug.cgi?id=125311 Reviewed by Darin Adler. Source/WebKit2: Make it possible to use WeakObjCPtr with pointer types such as id. Also, add a getAutoreleased() member that will load the weak pointer and retain + autorelease it. * Shared/mac/WeakObjCPtr.h: (WebKit::WeakObjCPtr::WeakObjCPtr): (WebKit::WeakObjCPtr::operator=): (WebKit::WeakObjCPtr::get): (WebKit::WeakObjCPtr::getAutoreleased): Tools: Split up tests into more logical groups. Add new tests for new functionality. * TestWebKitAPI/Tests/WebKit2/mac/WeakObjCPtr.mm: Canonical link: https://commits.webkit.org/143410@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@160187 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Anders Carlsson
committed
Dec 5, 2013
1 parent
b2ea0fe
commit 98e907e
Showing
4 changed files
with
94 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters