-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generate serialization of NSShadow #24079
Generate serialization of NSShadow #24079
Conversation
EWS run on previous version of this PR (hash 213e84b) |
213e84b
to
3493fda
Compare
EWS run on current version of this PR (hash 3493fda) |
EWS run on previous version of this PR (hash 3493fda) |
3493fda
to
d2d4175
Compare
EWS run on current version of this PR (hash d2d4175) |
EWS run on previous version of this PR (hash d2d4175) |
d2d4175
to
fce2df9
Compare
EWS run on previous version of this PR (hash fce2df9) |
fce2df9
to
9d69f7f
Compare
EWS run on previous version of this PR (hash 9d69f7f) |
9d69f7f
to
36b2aba
Compare
EWS run on previous version of this PR (hash 36b2aba) |
EWS run on previous version of this PR (hash 23980a5) |
23980a5
to
d6d0cc8
Compare
EWS run on previous version of this PR (hash d6d0cc8) |
d6d0cc8
to
7133fe4
Compare
EWS run on previous version of this PR (hash 7133fe4) |
7133fe4
to
12a3f25
Compare
EWS run on previous version of this PR (hash 12a3f25) |
12a3f25
to
7082b84
Compare
EWS run on previous version of this PR (hash 7082b84) |
This is interesting. The test passes on macOS with
|
7082b84
to
9cf09a2
Compare
EWS run on current version of this PR (hash 9cf09a2) |
@@ -31,6 +31,7 @@ | |||
#if PLATFORM(COCOA) | |||
|
|||
#import "WKKeyedCoder.h" | |||
#import <WebCore/AttributedString.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a lot to include just for the definition of PlatformColor
https://bugs.webkit.org/show_bug.cgi?id=268963 <rdar://107553244> Reviewed by Brady Eidson. * Source/WebCore/PAL/pal/ios/UIKitSoftLink.mm: - Export PAL::getNSShadowClass() for use in WebKit. * Source/WebKit/DerivedSources-input.xcfilelist: * Source/WebKit/DerivedSources.make: - Add CoreIPCNSShadow.serialization.in. * Source/WebKit/Shared/Cocoa/ArgumentCodersCocoa.h: - Add predeclaration for NSShadow class. - Add NSShadow to enum class NSType. (IPC::getClass<PlatformColor>): Add. (IPC::getClass<NSShadow>): Add. * Source/WebKit/Shared/Cocoa/ArgumentCodersCocoa.mm: (IPC::getClass<PlatformColor>): Add. - Provide method to get UIColor.class since it's soft-linked on non-AppKit platforms. (IPC::getClass<NSShadow>): Add. - Provide method to get NSShadow.class since it's soft-linked on non-AppKit platforms. (IPC::typeFromObject): - Switch from WebCore::CocoaColor to PlatformColorClass. - Update to handle NSShadow. (IPC::shouldEnableStrictMode): - Remove reference to NSShadow. * Source/WebKit/Shared/Cocoa/CoreIPCNSCFObject.h: * Source/WebKit/Shared/Cocoa/CoreIPCNSCFObject.mm: (WebKit::valueFromID): - Add CoreIPCNSShadow. * Source/WebKit/Shared/Cocoa/CoreIPCNSShadow.h: Copied from Source/WebKit/Shared/Cocoa/CoreIPCTypes.h. (WebKit::CoreIPCNSShadow::CoreIPCNSShadow): * Source/WebKit/Shared/Cocoa/CoreIPCNSShadow.mm: Copied from Source/WebKit/Shared/Cocoa/CoreIPCTypes.h. (WebKit::CoreIPCNSShadow::CoreIPCNSShadow): (WebKit::CoreIPCNSShadow::toID const): * Source/WebKit/Shared/Cocoa/CoreIPCNSShadow.serialization.in: Added. * Source/WebKit/Shared/Cocoa/CoreIPCTypes.h: - Include CoreIPCNSShadow.h. * Source/WebKit/WebKit.xcodeproj/project.pbxproj: - Add CoreIPCNSShadow.* files to the project. * Tools/TestWebKitAPI/Tests/IPC/IPCSerialization.mm: (ObjCHolderForTesting::encode const): - Add RetainPtr<NSShadow> to variant for testing. (runTestNS): (runTestCFWithExpectedResult): (runTestCF): - Change lambdas to static functions so we could start to break apart the IPC.Serialization.Basic test, which is way too big. (TEST(IPCSerialization, Basic)): - Move lambdas out of of this test function. (TEST(IPCSerialization, NSShadow)): Add. - Test serialization of NSShadow. (TEST(IPCSerialization, SecureCoding)): - Remove duplicate runTestNS lambda. Canonical link: https://commits.webkit.org/274870@main
9cf09a2
to
c7ecac1
Compare
Committed 274870@main (c7ecac1): https://commits.webkit.org/274870@main Reviewed commits have been landed. Closing PR #24079 and removing active labels. |
c7ecac1
9cf09a2
π wincairoπ§ͺ wpe-wk2π§ͺ api-wpeπ§ͺ ios-wk2-wptπ§ͺ gtk-wk2π tvπ§ͺ api-gtkπ watchπ watch-sim