Title: [250566] trunk/Source
Revision
250566
Author
krol...@apple.com
Date
2019-10-01 11:12:49 -0700 (Tue, 01 Oct 2019)

Log Message

Remove some support for < iOS 13
https://bugs.webkit.org/show_bug.cgi?id=202386
<rdar://problem/55863017>

Reviewed by Eric Carlson.

Remove some support for iOS versions less than 13.0.

Update conditionals that reference __IPHONE_OS_VERSION_MIN_REQUIRED
and __IPHONE_OS_VERSION_MAX_ALLOWED, assuming that they both have
values >= 130000. This means that expressions like
"__IPHONE_OS_VERSION_MIN_REQUIRED < 101300" are always False and
"__IPHONE_OS_VERSION_MIN_REQUIRED >= 101300" are always True.

This removal is part of a series of patches effecting the removal of
dead code for old versions of iOS. This particular pass involves
changes in which Jer Noble was involved. These changes are isolated
from other similar changes in order to facilitate the reviewing
process.

Source/WebCore:

No new tests -- no new or changed functionality.

* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::seekableTimeRangesLastModifiedTime const):
(WebCore::MediaPlayerPrivateAVFoundationObjC::liveUpdateInterval const):

Source/WebCore/PAL:

* pal/spi/cocoa/AVKitSPI.h:
* pal/spi/mac/AVFoundationSPI.h:

Source/WTF:

* wtf/Platform.h:

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (250565 => 250566)


--- trunk/Source/WTF/ChangeLog	2019-10-01 17:36:39 UTC (rev 250565)
+++ trunk/Source/WTF/ChangeLog	2019-10-01 18:12:49 UTC (rev 250566)
@@ -1,4 +1,28 @@
+2019-10-01  Keith Rollin  <krol...@apple.com>
 
+        Remove some support for < iOS 13
+        https://bugs.webkit.org/show_bug.cgi?id=202386
+        <rdar://problem/55863017>
+
+        Reviewed by Eric Carlson.
+
+        Remove some support for iOS versions less than 13.0.
+
+        Update conditionals that reference __IPHONE_OS_VERSION_MIN_REQUIRED
+        and __IPHONE_OS_VERSION_MAX_ALLOWED, assuming that they both have
+        values >= 130000. This means that expressions like
+        "__IPHONE_OS_VERSION_MIN_REQUIRED < 101300" are always False and
+        "__IPHONE_OS_VERSION_MIN_REQUIRED >= 101300" are always True.
+
+        This removal is part of a series of patches effecting the removal of
+        dead code for old versions of iOS. This particular pass involves
+        changes in which Jer Noble was involved. These changes are isolated
+        from other similar changes in order to facilitate the reviewing
+        process.
+
+        * wtf/Platform.h:
+
+
 2019-09-30  Alex Christensen  <achristen...@webkit.org>
 
         Resurrect Mac CMake build

Modified: trunk/Source/WTF/wtf/Platform.h (250565 => 250566)


--- trunk/Source/WTF/wtf/Platform.h	2019-10-01 17:36:39 UTC (rev 250565)
+++ trunk/Source/WTF/wtf/Platform.h	2019-10-01 18:12:49 UTC (rev 250566)
@@ -1558,8 +1558,11 @@
 #define HAVE_HOVER_GESTURE_RECOGNIZER 1
 #endif
 
-#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500) || (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 130000) || PLATFORM(WATCHOS) || PLATFORM(APPLETV)
+#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500) || PLATFORM(IOS_FAMILY)
 #define HAVE_ALLOWS_SENSITIVE_LOGGING 1
+#endif
+
+#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500) || PLATFORM(IOS_FAMILY)
 #define HAVE_FAIRPLAYSTREAMING_CENC_INITDATA 1
 #endif
 

Modified: trunk/Source/WebCore/ChangeLog (250565 => 250566)


--- trunk/Source/WebCore/ChangeLog	2019-10-01 17:36:39 UTC (rev 250565)
+++ trunk/Source/WebCore/ChangeLog	2019-10-01 18:12:49 UTC (rev 250566)
@@ -1,3 +1,31 @@
+2019-10-01  Keith Rollin  <krol...@apple.com>
+
+        Remove some support for < iOS 13
+        https://bugs.webkit.org/show_bug.cgi?id=202386
+        <rdar://problem/55863017>
+
+        Reviewed by Eric Carlson.
+
+        Remove some support for iOS versions less than 13.0.
+
+        Update conditionals that reference __IPHONE_OS_VERSION_MIN_REQUIRED
+        and __IPHONE_OS_VERSION_MAX_ALLOWED, assuming that they both have
+        values >= 130000. This means that expressions like
+        "__IPHONE_OS_VERSION_MIN_REQUIRED < 101300" are always False and
+        "__IPHONE_OS_VERSION_MIN_REQUIRED >= 101300" are always True.
+
+        This removal is part of a series of patches effecting the removal of
+        dead code for old versions of iOS. This particular pass involves
+        changes in which Jer Noble was involved. These changes are isolated
+        from other similar changes in order to facilitate the reviewing
+        process.
+
+        No new tests -- no new or changed functionality.
+
+        * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
+        (WebCore::MediaPlayerPrivateAVFoundationObjC::seekableTimeRangesLastModifiedTime const):
+        (WebCore::MediaPlayerPrivateAVFoundationObjC::liveUpdateInterval const):
+
 2019-10-01  Chris Dumez  <cdu...@apple.com>
 
         Unreviewed attempt to fix Windows build after r250527.

Modified: trunk/Source/WebCore/PAL/ChangeLog (250565 => 250566)


--- trunk/Source/WebCore/PAL/ChangeLog	2019-10-01 17:36:39 UTC (rev 250565)
+++ trunk/Source/WebCore/PAL/ChangeLog	2019-10-01 18:12:49 UTC (rev 250566)
@@ -1,3 +1,28 @@
+2019-10-01  Keith Rollin  <krol...@apple.com>
+
+        Remove some support for < iOS 13
+        https://bugs.webkit.org/show_bug.cgi?id=202386
+        <rdar://problem/55863017>
+
+        Reviewed by Eric Carlson.
+
+        Remove some support for iOS versions less than 13.0.
+
+        Update conditionals that reference __IPHONE_OS_VERSION_MIN_REQUIRED
+        and __IPHONE_OS_VERSION_MAX_ALLOWED, assuming that they both have
+        values >= 130000. This means that expressions like
+        "__IPHONE_OS_VERSION_MIN_REQUIRED < 101300" are always False and
+        "__IPHONE_OS_VERSION_MIN_REQUIRED >= 101300" are always True.
+
+        This removal is part of a series of patches effecting the removal of
+        dead code for old versions of iOS. This particular pass involves
+        changes in which Jer Noble was involved. These changes are isolated
+        from other similar changes in order to facilitate the reviewing
+        process.
+
+        * pal/spi/cocoa/AVKitSPI.h:
+        * pal/spi/mac/AVFoundationSPI.h:
+
 2019-09-30  Alex Christensen  <achristen...@webkit.org>
 
         Resurrect Mac CMake build

Modified: trunk/Source/WebCore/PAL/pal/spi/cocoa/AVKitSPI.h (250565 => 250566)


--- trunk/Source/WebCore/PAL/pal/spi/cocoa/AVKitSPI.h	2019-10-01 17:36:39 UTC (rev 250565)
+++ trunk/Source/WebCore/PAL/pal/spi/cocoa/AVKitSPI.h	2019-10-01 18:12:49 UTC (rev 250566)
@@ -33,7 +33,7 @@
 
 #if USE(APPLE_INTERNAL_SDK)
 
-#if !PLATFORM(WATCHOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 120000
+#if PLATFORM(IOS) || PLATFORM(MACCATALYST)
 #import <AVKit/AVBackgroundView.h>
 #endif
 
@@ -90,7 +90,7 @@
 
 NS_ASSUME_NONNULL_END
 
-#elif __IPHONE_OS_VERSION_MAX_ALLOWED < 120200
+#elif PLATFORM(APPLETV)
 NS_ASSUME_NONNULL_BEGIN
 @interface AVPlayerViewController (AVPlayerViewController_WebKitOnly_OverrideRouteSharingPolicy)
 - (void)setWebKitOverrideRouteSharingPolicy:(NSUInteger)routeSharingPolicy routingContextUID:(NSString *)routingContextUID;

Modified: trunk/Source/WebCore/PAL/pal/spi/mac/AVFoundationSPI.h (250565 => 250566)


--- trunk/Source/WebCore/PAL/pal/spi/mac/AVFoundationSPI.h	2019-10-01 17:36:39 UTC (rev 250565)
+++ trunk/Source/WebCore/PAL/pal/spi/mac/AVFoundationSPI.h	2019-10-01 18:12:49 UTC (rev 250566)
@@ -178,7 +178,7 @@
 @end
 #endif // !HAVE(AVKIT)
 
-#if !USE(APPLE_INTERNAL_SDK) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED < 101404) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MAX_ALLOWED < 120200)
+#if !USE(APPLE_INTERNAL_SDK) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED < 101404)
 @class AVVideoPerformanceMetrics;
 NS_ASSUME_NONNULL_BEGIN
 @interface AVPlayerLayer (AVPlayerLayerVideoPerformanceMetrics)
@@ -305,7 +305,7 @@
 @end
 #endif
 
-#if !USE(APPLE_INTERNAL_SDK) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED < 101500) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MAX_ALLOWED < 130000)
+#if !USE(APPLE_INTERNAL_SDK) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED < 101500)
 @interface AVSampleBufferDisplayLayer (WebCorePrivate)
 @property (assign, nonatomic) BOOL preventsDisplaySleepDuringVideoPlayback;
 @end

Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm (250565 => 250566)


--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm	2019-10-01 17:36:39 UTC (rev 250565)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm	2019-10-01 18:12:49 UTC (rev 250566)
@@ -1313,7 +1313,7 @@
 
 double MediaPlayerPrivateAVFoundationObjC::seekableTimeRangesLastModifiedTime() const
 {
-#if PLATFORM(MAC) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)
+#if PLATFORM(MAC) || PLATFORM(IOS) || PLATFORM(MACCATALYST)
     return [m_avPlayerItem seekableTimeRangesLastModifiedTime];
 #else
     return 0;
@@ -1322,7 +1322,7 @@
 
 double MediaPlayerPrivateAVFoundationObjC::liveUpdateInterval() const
 {
-#if PLATFORM(MAC) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)
+#if PLATFORM(MAC) || PLATFORM(IOS) || PLATFORM(MACCATALYST)
     return [m_avPlayerItem liveUpdateInterval];
 #else
     return 0;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to