MediaPlaybackTarget should be refcounted.
Created attachment 250468 [details] Proposed patch.
Created attachment 250470 [details] Updated patch.
Attachment 250470 [details] did not pass style-queue: ERROR: Source/WebCore/platform/graphics/avfoundation/MediaPlaybackTargetContextMac.mm:58: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebCore/platform/graphics/avfoundation/MediaPlaybackTargetContextMac.mm:58: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 2 in 39 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 250470 [details] Updated patch. View in context: https://bugs.webkit.org/attachment.cgi?id=250470&action=review r=me with nit: > Source/WebCore/platform/graphics/MediaPlaybackTargetContext.h:45 > +#if PLATFORM(COCOA) > + WEBCORE_EXPORT void encode(NSKeyedArchiver *) const; > + WEBCORE_EXPORT static bool decode(NSKeyedUnarchiver *, MediaPlaybackTargetContext&); > +#endif nit: Maybe move these into WebCoreArgumentCodersMac.mm?
Created attachment 250490 [details] Patch for the bots.
Attachment 250490 [details] did not pass style-queue: ERROR: Source/WebKit2/Shared/mac/WebCoreArgumentCodersMac.mm:486: Place brace on its own line for function definitions. [whitespace/braces] [4] ERROR: Source/WebKit2/Shared/mac/WebCoreArgumentCodersMac.mm:486: Extra space before ( in function call [whitespace/parens] [4] Total errors found: 2 in 39 files If any of these errors are false positives, please file a bug against check-webkit-style.
(In reply to comment #4) > Comment on attachment 250470 [details] > Updated patch. > > View in context: > https://bugs.webkit.org/attachment.cgi?id=250470&action=review > > r=me with nit: > > > Source/WebCore/platform/graphics/MediaPlaybackTargetContext.h:45 > > +#if PLATFORM(COCOA) > > + WEBCORE_EXPORT void encode(NSKeyedArchiver *) const; > > + WEBCORE_EXPORT static bool decode(NSKeyedUnarchiver *, MediaPlaybackTargetContext&); > > +#endif > > nit: Maybe move these into WebCoreArgumentCodersMac.mm? Good idea, done.
Committed r182630: https://trac.webkit.org/r182630