[IPC] Teach WebKit how to serialize CGColors
Created attachment 455080 [details] Patch
<rdar://problem/90124325>
Created attachment 455081 [details] Patch
Created attachment 455137 [details] Patch
Comment on attachment 455137 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=455137&action=review > Source/WebKit/Shared/Cocoa/ArgumentCodersCocoa.mm:60 > +- (instancetype _Nullable)initWithCGColor:(CGColorRef)wrappedColor; no infectious nullable in implementation files, please! (in many places) > Source/WebKit/Shared/Cocoa/ArgumentCodersCocoa.mm:74 > + if (CFGetTypeID(object) == CGColorGetTypeID()) should this check the type hierarchy instead of a specific type? what if you have a CGColor subtype? (is that even a thing?) > Source/WebKit/Shared/Cocoa/ArgumentCodersCocoa.mm:250 > + // Non-toll-free-bridged CF types do not conform to NSSecureCoding. Wouldn't non-bridged CF types also be exploding about messaging them with -isKindOfClass? (maybe not)
Comment on attachment 455137 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=455137&action=review >> Source/WebKit/Shared/Cocoa/ArgumentCodersCocoa.mm:250 >> + // Non-toll-free-bridged CF types do not conform to NSSecureCoding. > > Wouldn't non-bridged CF types also be exploding about messaging them with -isKindOfClass? (maybe not) They behave as NSObject (rather than NSColor or whatever).
Comment on attachment 455137 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=455137&action=review >> Source/WebKit/Shared/Cocoa/ArgumentCodersCocoa.mm:74 >> + if (CFGetTypeID(object) == CGColorGetTypeID()) > > should this check the type hierarchy instead of a specific type? what if you have a CGColor subtype? (is that even a thing?) (Followed up offline about this)
Committed r291518 (248624@trunk): <https://commits.webkit.org/248624@trunk>