[Webkit-unassigned] [Bug 231467] New: Switch WTF::bridge_cast to use type traits

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 8 17:37:40 PDT 2021


https://bugs.webkit.org/show_bug.cgi?id=231467

            Bug ID: 231467
           Summary: Switch WTF::bridge_cast to use type traits
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ddkilzer at webkit.org
                CC: andersca at apple.com, darin at apple.com
        Depends on: 230406, 231251

Switch WTF::bridge_cast to use type traits.

This replaces some macro-generated code with template code.

Not sure the new code is more readable, but error messages should be much less verbose.

Defining the type traits in WebKit will also let us remove some duplicate code in Safari.

This is based on some code written in November 2011 by Anders Carlsson.


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=231251
[Bug 231251] Add back RetainPtrARC and TypeCastsCocoaARC tests to TestWTF
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20211009/4ce0c90f/attachment.htm>


More information about the webkit-unassigned mailing list