Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: b6a50d258a8e656e38e2d0b92b8cfa96eb3bc692
https://github.com/WebKit/WebKit/commit/b6a50d258a8e656e38e2d0b92b8cfa96eb3bc692
Author: Rose <[email protected]>
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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes