Fix build for platforms where HAVE(LINK_PREVIEW) is false
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Oct 2016 19:22:11 +0000 (19:22 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Oct 2016 19:22:11 +0000 (19:22 +0000)
https://bugs.webkit.org/show_bug.cgi?id=163607

Patch by Megan Gardner <megan_gardner@apple.com> on 2016-10-18
Reviewed by Tim Horton.

Added needed # for link preview

* UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView _contentsOfUserInterfaceItem:]):

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

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm

index 7a2354f..b1a972c 100644 (file)
@@ -1,3 +1,15 @@
+2016-10-18  Megan Gardner  <megan_gardner@apple.com>
+
+        Fix build for platforms where HAVE(LINK_PREVIEW) is false
+        https://bugs.webkit.org/show_bug.cgi?id=163607
+
+        Reviewed by Tim Horton.
+
+        Added needed # for link preview
+
+        * UIProcess/ios/WKContentViewInteraction.mm:
+        (-[WKContentView _contentsOfUserInterfaceItem:]):
+
 2016-10-18  Joseph Pecoraro  <pecoraro@apple.com>
 
         Remote Web Inspector: Timeline UI not updating while recording
index d5d3513..6b040a5 100644 (file)
@@ -3848,11 +3848,13 @@ static bool isAssistableInputType(InputType type)
 {
     if ([userInterfaceItem isEqualToString:@"actionSheet"])
         return @{ userInterfaceItem: [_actionSheetAssistant currentAvailableActionTitles] };
-    
+
+#if HAVE(LINK_PREVIEW)
     if ([userInterfaceItem isEqualToString:@"linkPreviewPopoverContents"]) {
         NSString *url = [_previewItemController previewData][UIPreviewDataLink];
         return @{ userInterfaceItem: @{ @"pageURL": url } };
     }
+#endif
     
     return nil;
 }