Bug 141014

Summary: Remove more Mountain Lion code from WebCore
Product: WebKit Reporter: Beth Dakin <bdakin>
Component: WebCore Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, ap, bdakin, mitz, sam, thorton
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch andersca: review+

Description Beth Dakin 2015-01-28 15:23:37 PST
Remove more Mountain Lion code from WebCore
Comment 1 Beth Dakin 2015-01-28 15:25:13 PST
Created attachment 245572 [details]
Patch
Comment 2 Beth Dakin 2015-01-28 16:30:12 PST
Comment on attachment 245572 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=245572&action=review

> Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:-2019
> -#else

I think we need this #else!
Comment 3 Beth Dakin 2015-01-28 16:31:40 PST
Comment on attachment 245572 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=245572&action=review

>> Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:-2019
>> -#else
> 
> I think we need this #else!

No, false alarm. Just the fide being dumb.
Comment 4 Beth Dakin 2015-01-28 16:46:22 PST
Created attachment 245581 [details]
Patch

Patch that uses more COCOA.
Comment 5 Anders Carlsson 2015-01-28 16:52:54 PST
Comment on attachment 245581 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=245581&action=review

> Source/WebCore/crypto/CommonCryptoUtilities.h:41
> +#if defined(__has_include) && (PLATFORM(COCOA))

Can remove the () outside PLATFORM(COCOA)

> Source/WebCore/editing/cocoa/HTMLConverter.mm:1725
> +#if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || PLATFORM(MAC)

This can also be PLATFORM(COCOA) - actually I think this is always going to be true inside HTMLConverter.mm!

> Source/WebCore/loader/cocoa/DiskCacheMonitorCocoa.mm:44
> -#if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090)
> +#if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 80000) || PLATFORM(MAC)

Can just remove the #if.
Comment 6 Beth Dakin 2015-01-29 13:58:40 PST
Thank you! http://trac.webkit.org/changeset/179364