Fix the build after 242801
authortimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Mar 2019 18:23:54 +0000 (18:23 +0000)
committertimothy_horton@apple.com <timothy_horton@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 12 Mar 2019 18:23:54 +0000 (18:23 +0000)
* UIProcess/ios/WKActionSheetAssistant.mm:
(-[WKActionSheetAssistant _elementActionForDDAction:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@242805 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/UIProcess/ios/WKActionSheetAssistant.mm

index fd50d80..5db80a7 100644 (file)
@@ -1,3 +1,10 @@
+2019-03-12  Tim Horton  <timothy_horton@apple.com>
+
+        Fix the build after 242801
+
+        * UIProcess/ios/WKActionSheetAssistant.mm:
+        (-[WKActionSheetAssistant _elementActionForDDAction:]):
+
 2019-03-12  Eric Carlson  <eric.carlson@apple.com>
 
         [iOS] Sandbox must allow mach lookup required to compress video
index ee820fb..679ec32 100644 (file)
@@ -168,6 +168,7 @@ static LSAppLink *appLinkForURL(NSURL *url)
 
 - (_WKElementAction *)_elementActionForDDAction:(DDAction *)action
 {
+#if PLATFORM(IOS)
     auto retainedSelf = retainPtr(self);
     _WKElementAction *elementAction = [_WKElementAction elementActionWithTitle:action.localizedName actionHandler:^(_WKActivatedElementInfo *actionInfo) {
         retainedSelf->_isPresentingDDUserInterface = action.hasUserInterface;
@@ -177,6 +178,9 @@ static LSAppLink *appLinkForURL(NSURL *url)
         return !action.hasUserInterface;
     };
     return elementAction;
+#else
+    return nil;
+#endif
 }
 
 static const CGFloat presentationElementRectPadding = 15;