Title: [249978] trunk
Revision
249978
Author
[email protected]
Date
2019-09-17 13:20:38 -0700 (Tue, 17 Sep 2019)

Log Message

Remove some support for < iOS 12
https://bugs.webkit.org/show_bug.cgi?id=201851
<rdar://problem/55422044>

Reviewed by Jiewen Tan and Alexey Proskuryakov.

Remove some support for iOS versions less than 12.0.

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

This removal is part of a series of patches effecting such removal.

Source/WebCore:

No new tests -- no new or changed functionality.

* crypto/mac/CryptoKeyRSAMac.cpp:
(WebCore::CryptoKeyRSA::create):
(WebCore::castDataArgumentToCCRSACryptorCreateFromDataIfNeeded): Deleted.

Source/WebCore/PAL:

* pal/spi/cocoa/IOSurfaceSPI.h:

Tools:

* WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm:
(WTR::installFakeHelvetica):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (249977 => 249978)


--- trunk/Source/WebCore/ChangeLog	2019-09-17 20:17:47 UTC (rev 249977)
+++ trunk/Source/WebCore/ChangeLog	2019-09-17 20:20:38 UTC (rev 249978)
@@ -1,3 +1,27 @@
+2019-09-17  Keith Rollin  <[email protected]>
+
+        Remove some support for < iOS 12
+        https://bugs.webkit.org/show_bug.cgi?id=201851
+        <rdar://problem/55422044>
+
+        Reviewed by Jiewen Tan and Alexey Proskuryakov.
+
+        Remove some support for iOS versions less than 12.0.
+
+        Update conditionals that reference __IPHONE_OS_VERSION_MIN_REQUIRED
+        and __IPHONE_OS_VERSION_MAX_ALLOWED, assuming that they both have
+        values >= 120000. This means that expressions like
+        "__IPHONE_OS_VERSION_MIN_REQUIRED < 101200" are always False and
+        "__IPHONE_OS_VERSION_MIN_REQUIRED >= 101200" are always True.
+
+        This removal is part of a series of patches effecting such removal.
+
+        No new tests -- no new or changed functionality.
+
+        * crypto/mac/CryptoKeyRSAMac.cpp:
+        (WebCore::CryptoKeyRSA::create):
+        (WebCore::castDataArgumentToCCRSACryptorCreateFromDataIfNeeded): Deleted.
+
 2019-09-17  Nikolas Zimmermann  <[email protected]>
 
         SVG <animateMotion> does not reset the element to its first animation frame if its fill is "remove"

Modified: trunk/Source/WebCore/PAL/ChangeLog (249977 => 249978)


--- trunk/Source/WebCore/PAL/ChangeLog	2019-09-17 20:17:47 UTC (rev 249977)
+++ trunk/Source/WebCore/PAL/ChangeLog	2019-09-17 20:20:38 UTC (rev 249978)
@@ -1,3 +1,23 @@
+2019-09-17  Keith Rollin  <[email protected]>
+
+        Remove some support for < iOS 12
+        https://bugs.webkit.org/show_bug.cgi?id=201851
+        <rdar://problem/55422044>
+
+        Reviewed by Jiewen Tan and Alexey Proskuryakov.
+
+        Remove some support for iOS versions less than 12.0.
+
+        Update conditionals that reference __IPHONE_OS_VERSION_MIN_REQUIRED
+        and __IPHONE_OS_VERSION_MAX_ALLOWED, assuming that they both have
+        values >= 120000. This means that expressions like
+        "__IPHONE_OS_VERSION_MIN_REQUIRED < 101200" are always False and
+        "__IPHONE_OS_VERSION_MIN_REQUIRED >= 101200" are always True.
+
+        This removal is part of a series of patches effecting such removal.
+
+        * pal/spi/cocoa/IOSurfaceSPI.h:
+
 2019-09-17  Jonathan Bedard  <[email protected]>
 
         Follow-up: Provide a prototype for AR QuickLook to trigger processing in the originating page

Modified: trunk/Source/WebCore/PAL/pal/spi/cocoa/IOSurfaceSPI.h (249977 => 249978)


--- trunk/Source/WebCore/PAL/pal/spi/cocoa/IOSurfaceSPI.h	2019-09-17 20:17:47 UTC (rev 249977)
+++ trunk/Source/WebCore/PAL/pal/spi/cocoa/IOSurfaceSPI.h	2019-09-17 20:20:38 UTC (rev 249978)
@@ -40,14 +40,8 @@
 
 typedef struct __IOSurface *IOSurfaceRef;
 
-#if PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED < 110000
-enum {
-    kIOSurfaceLockReadOnly  = 0x00000001,
-};
 #endif
 
-#endif
-
 WTF_EXTERN_C_BEGIN
 
 extern const CFStringRef kIOSurfaceAllocSize;
@@ -92,21 +86,10 @@
 
 #else
 
-#if (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000) || PLATFORM(MAC)
-
 #import <IOSurface/IOSurfaceTypes.h>
 
-#else
-enum {
-    kIOSurfacePurgeableNonVolatile = 0,
-    kIOSurfacePurgeableVolatile = 1,
-    kIOSurfacePurgeableEmpty = 2,
-    kIOSurfacePurgeableKeepCurrent = 3,
-};
 #endif
 
-#endif
-
 WTF_EXTERN_C_BEGIN
 
 IOReturn IOSurfaceSetPurgeable(IOSurfaceRef buffer, uint32_t newState, uint32_t *oldState);

Modified: trunk/Source/WebCore/crypto/mac/CryptoKeyRSAMac.cpp (249977 => 249978)


--- trunk/Source/WebCore/crypto/mac/CryptoKeyRSAMac.cpp	2019-09-17 20:17:47 UTC (rev 249977)
+++ trunk/Source/WebCore/crypto/mac/CryptoKeyRSAMac.cpp	2019-09-17 20:20:38 UTC (rev 249978)
@@ -41,18 +41,6 @@
 
 namespace WebCore {
 
-#if (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED < 110000)
-inline uint8_t* castDataArgumentToCCRSACryptorCreateFromDataIfNeeded(const uint8_t* value)
-{
-    return const_cast<uint8_t*>(value);
-}
-#else
-inline const uint8_t* castDataArgumentToCCRSACryptorCreateFromDataIfNeeded(const uint8_t* value)
-{
-    return value;
-}
-#endif
-
 // OID rsaEncryption: 1.2.840.113549.1.1.1. Per https://tools.ietf.org/html/rfc3279#section-2.3.1
 static const unsigned char RSAOIDHeader[] = {0x30, 0x0d, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01, 0x01, 0x05, 0x00};
 
@@ -150,10 +138,10 @@
     // See <rdar://problem/15452324>.
     CCCryptorStatus status = CCRSACryptorCreateFromData(
         keyData.type() == CryptoKeyRSAComponents::Type::Public ? ccRSAKeyPublic : ccRSAKeyPrivate,
-        castDataArgumentToCCRSACryptorCreateFromDataIfNeeded(keyData.modulus().data()), keyData.modulus().size(),
-        castDataArgumentToCCRSACryptorCreateFromDataIfNeeded(keyData.exponent().data()), keyData.exponent().size(),
-        castDataArgumentToCCRSACryptorCreateFromDataIfNeeded(keyData.firstPrimeInfo().primeFactor.data()), keyData.firstPrimeInfo().primeFactor.size(),
-        castDataArgumentToCCRSACryptorCreateFromDataIfNeeded(keyData.secondPrimeInfo().primeFactor.data()), keyData.secondPrimeInfo().primeFactor.size(),
+        keyData.modulus().data(), keyData.modulus().size(),
+        keyData.exponent().data(), keyData.exponent().size(),
+        keyData.firstPrimeInfo().primeFactor.data(), keyData.firstPrimeInfo().primeFactor.size(),
+        keyData.secondPrimeInfo().primeFactor.data(), keyData.secondPrimeInfo().primeFactor.size(),
         &cryptor);
 
     if (status) {

Modified: trunk/Tools/ChangeLog (249977 => 249978)


--- trunk/Tools/ChangeLog	2019-09-17 20:17:47 UTC (rev 249977)
+++ trunk/Tools/ChangeLog	2019-09-17 20:20:38 UTC (rev 249978)
@@ -1,3 +1,24 @@
+2019-09-17  Keith Rollin  <[email protected]>
+
+        Remove some support for < iOS 12
+        https://bugs.webkit.org/show_bug.cgi?id=201851
+        <rdar://problem/55422044>
+
+        Reviewed by Jiewen Tan and Alexey Proskuryakov.
+
+        Remove some support for iOS versions less than 12.0.
+
+        Update conditionals that reference __IPHONE_OS_VERSION_MIN_REQUIRED
+        and __IPHONE_OS_VERSION_MAX_ALLOWED, assuming that they both have
+        values >= 120000. This means that expressions like
+        "__IPHONE_OS_VERSION_MIN_REQUIRED < 101200" are always False and
+        "__IPHONE_OS_VERSION_MIN_REQUIRED >= 101200" are always True.
+
+        This removal is part of a series of patches effecting such removal.
+
+        * WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm:
+        (WTR::installFakeHelvetica):
+
 2019-09-17  David Kilzer  <[email protected]>
 
         run-webkit-tests: Driver.do_post_tests_work() is never called when `stop_when_done` is true in Driver.run_test()

Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm (249977 => 249978)


--- trunk/Tools/WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm	2019-09-17 20:17:47 UTC (rev 249977)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm	2019-09-17 20:20:38 UTC (rev 249978)
@@ -143,7 +143,7 @@
     NSURL *resourceURL = [resourcesDirectoryURL() URLByAppendingPathComponent:[NSString stringWithFormat:@"FakeHelvetica-%@.ttf", configurationString.get()] isDirectory:NO];
     CFErrorRef error = nullptr;
     if (!CTFontManagerRegisterFontsForURL((__bridge CFURLRef)resourceURL, kCTFontManagerScopeProcess, &error)) {
-#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400) || (PLATFORM(IOS_FAMILY) && !PLATFORM(IOS_FAMILY_SIMULATOR) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 120000)
+#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400) || (PLATFORM(IOS) && !PLATFORM(IOS_FAMILY_SIMULATOR))
         // Registering shadow fonts is only supported on macOS Mojave and iOS 12 or newer, but not iOS Simulator. See Bugs 180062 & 194761.
         NSLog(@"Failed to activate fake Helvetica: %@", error);
 #endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to