Title: [242904] trunk/Source
- Revision
- 242904
- Author
- [email protected]
- Date
- 2019-03-13 13:33:36 -0700 (Wed, 13 Mar 2019)
Log Message
Try to fix the Mac build after r242356.
Source/WebKit:
* Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm:
(WebKit::WebPaymentCoordinatorProxy::platformPaymentRequest):
Source/WTF:
* wtf/FeatureDefines.h:
Modified Paths
Diff
Modified: trunk/Source/WTF/wtf/FeatureDefines.h (242903 => 242904)
--- trunk/Source/WTF/wtf/FeatureDefines.h 2019-03-13 20:32:48 UTC (rev 242903)
+++ trunk/Source/WTF/wtf/FeatureDefines.h 2019-03-13 20:33:36 UTC (rev 242904)
@@ -189,6 +189,10 @@
#define HAVE_PASSKIT_GRANULAR_ERRORS 1
#endif
+#if !defined(HAVE_PASSKIT_API_TYPE)
+#define HAVE_PASSKIT_API_TYPE 1
+#endif
+
#endif /* PLATFORM(IOS_FAMILY) */
/* --------- Apple WATCHOS port --------- */
@@ -279,6 +283,10 @@
#define HAVE_PASSKIT_GRANULAR_ERRORS __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
#endif
+#if !defined(HAVE_PASSKIT_API_TYPE)
+#define HAVE_PASSKIT_API_TYPE HAVE(PASSKIT_GRANULAR_ERRORS) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 101304
+#endif
+
#endif /* PLATFORM(MAC) */
#if PLATFORM(COCOA)
Modified: trunk/Source/WebKit/Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm (242903 => 242904)
--- trunk/Source/WebKit/Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm 2019-03-13 20:32:48 UTC (rev 242903)
+++ trunk/Source/WebKit/Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm 2019-03-13 20:33:36 UTC (rev 242904)
@@ -239,7 +239,9 @@
return WTFMove(mutableSet);
}
+#endif
+#if HAVE(PASSKIT_API_TYPE)
static PKPaymentRequestAPIType toAPIType(WebCore::ApplePaySessionPaymentRequest::Requester requester)
{
switch (requester) {
@@ -266,7 +268,7 @@
} else if (!linkIconURLs.isEmpty())
[result setThumbnailURL:linkIconURLs[0]];
-#if HAVE(PASSKIT_GRANULAR_ERRORS)
+#if HAVE(PASSKIT_API_TYPE)
[result setAPIType:toAPIType(paymentRequest.requester())];
#endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes