[webkit-changes] [WebKit/WebKit] b6a50d: WTF: Use __bridge_retained to help the compiler ke...
Rose
noreply at github.com
Mon Mar 20 00:04:01 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b6a50d258a8e656e38e2d0b92b8cfa96eb3bc692
https://github.com/WebKit/WebKit/commit/b6a50d258a8e656e38e2d0b92b8cfa96eb3bc692
Author: Rose <83477269+AtariDreams at users.noreply.github.com>
Date: 2023-03-20 (Mon, 20 Mar 2023)
Changed paths:
M Source/WTF/wtf/RetainPtr.h
M Source/WTF/wtf/cocoa/TypeCastsCocoa.h
Log Message:
-----------
WTF: Use __bridge_retained to help the compiler keep track of CF objects https://bugs.webkit.org/show_bug.cgi?id=253820
Reviewed by Darin Adler.
As we use __bridged_release when converting to NS Objects,
it makes sense to do the inverse when converting to CF Objects.
* Source/WTF/wtf/RetainPtr.h: Statically assert that adoptNS is only used
for NS objects.
* Source/WTF/wtf/cocoa/TypeCastsCocoa.h: Use __bridge_retained to
convert NS objects to CF objects.
Canonical link: https://commits.webkit.org/261860@main
More information about the webkit-changes
mailing list