Diff
Modified: trunk/Source/WebKit/ChangeLog (230267 => 230268)
--- trunk/Source/WebKit/ChangeLog 2018-04-04 18:26:24 UTC (rev 230267)
+++ trunk/Source/WebKit/ChangeLog 2018-04-04 18:28:58 UTC (rev 230268)
@@ -1,3 +1,21 @@
+2018-04-03 Beth Dakin <bda...@apple.com>
+
+ Fix the print formatter build
+ https://bugs.webkit.org/show_bug.cgi?id=184289
+ -and corresponding-
+ rdar://problem/39164641
+
+ Reviewed by Dan Bernstein.
+
+ * UIProcess/API/Cocoa/WKWebView.mm:
+ (-[WKWebView _webViewPrintFormatter]):
+ * UIProcess/API/Cocoa/WKWebViewInternal.h:
+ * UIProcess/_WKWebViewPrintFormatter.h:
+ * UIProcess/_WKWebViewPrintFormatter.mm:
+ * UIProcess/_WKWebViewPrintFormatterInternal.h:
+ * UIProcess/ios/WKContentView.mm:
+ * UIProcess/ios/WKPDFView.mm:
+
2018-04-04 Andy Estes <aes...@apple.com>
[iOS] Rename WKPDFView to WKLegacyPDFView
Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm (230267 => 230268)
--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm 2018-04-04 18:26:24 UTC (rev 230267)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm 2018-04-04 18:28:58 UTC (rev 230268)
@@ -5473,9 +5473,13 @@
- (_WKWebViewPrintFormatter *)_webViewPrintFormatter
{
+#if !ENABLE(MINIMAL_SIMULATOR)
UIViewPrintFormatter *viewPrintFormatter = self.viewPrintFormatter;
ASSERT([viewPrintFormatter isKindOfClass:[_WKWebViewPrintFormatter class]]);
return (_WKWebViewPrintFormatter *)viewPrintFormatter;
+#else
+ return nil;
+#endif // ENABLE(MINIMAL_SIMULATOR)
}
static WebCore::UserInterfaceLayoutDirection toUserInterfaceLayoutDirection(UISemanticContentAttribute contentAttribute)
@@ -6424,7 +6428,7 @@
#endif // PLATFORM(MAC)
-#if PLATFORM(IOS)
+#if PLATFORM(IOS) && !ENABLE(MINIMAL_SIMULATOR)
@implementation WKWebView (_WKWebViewPrintFormatter)
- (Class)_printFormatterClass
Modified: trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebViewInternal.h (230267 => 230268)
--- trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebViewInternal.h 2018-04-04 18:26:24 UTC (rev 230267)
+++ trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebViewInternal.h 2018-04-04 18:28:58 UTC (rev 230268)
@@ -170,7 +170,7 @@
@end
#endif // ENABLE(FULLSCREEN_API) && PLATFORM(IOS)
-#if PLATFORM(IOS)
+#if PLATFORM(IOS) && !ENABLE(MINIMAL_SIMULATOR)
@interface WKWebView (_WKWebViewPrintFormatter)
@property (nonatomic, readonly) id <_WKWebViewPrintProvider> _printProvider;
@end
Modified: trunk/Source/WebKit/UIProcess/_WKWebViewPrintFormatter.mm (230267 => 230268)
--- trunk/Source/WebKit/UIProcess/_WKWebViewPrintFormatter.mm 2018-04-04 18:26:24 UTC (rev 230267)
+++ trunk/Source/WebKit/UIProcess/_WKWebViewPrintFormatter.mm 2018-04-04 18:28:58 UTC (rev 230268)
@@ -26,7 +26,7 @@
#import "config.h"
#import "_WKWebViewPrintFormatterInternal.h"
-#if PLATFORM(IOS)
+#if PLATFORM(IOS) && !ENABLE(MINIMAL_SIMULATOR)
#import "WKWebViewInternal.h"
#import "_WKFrameHandle.h"
@@ -116,4 +116,4 @@
@end
-#endif // PLATFORM(IOS)
+#endif // PLATFORM(IOS) && !ENABLE(MINIMAL_SIMULATOR)
Modified: trunk/Source/WebKit/UIProcess/_WKWebViewPrintFormatterInternal.h (230267 => 230268)
--- trunk/Source/WebKit/UIProcess/_WKWebViewPrintFormatterInternal.h 2018-04-04 18:26:24 UTC (rev 230267)
+++ trunk/Source/WebKit/UIProcess/_WKWebViewPrintFormatterInternal.h 2018-04-04 18:28:58 UTC (rev 230268)
@@ -25,7 +25,7 @@
#import "_WKWebViewPrintFormatter.h"
-#if PLATFORM(IOS)
+#if PLATFORM(IOS) && !ENABLE(MINIMAL_SIMULATOR)
@interface UIPrintFormatter ()
- (CGRect)_pageContentRect:(BOOL)firstPage;
@@ -41,4 +41,4 @@
@property (nonatomic, readonly) CGPDFDocumentRef _wk_printedDocument;
@end
-#endif // PLATFORM(IOS)
+#endif // PLATFORM(IOS) && !ENABLE(MINIMAL_SIMULATOR)
Modified: trunk/Source/WebKit/UIProcess/ios/WKContentView.mm (230267 => 230268)
--- trunk/Source/WebKit/UIProcess/ios/WKContentView.mm 2018-04-04 18:26:24 UTC (rev 230267)
+++ trunk/Source/WebKit/UIProcess/ios/WKContentView.mm 2018-04-04 18:28:58 UTC (rev 230268)
@@ -676,6 +676,8 @@
#pragma mark Printing
+#if !ENABLE(MINIMAL_SIMULATOR)
+
@interface WKContentView (_WKWebViewPrintFormatter) <_WKWebViewPrintProvider>
@end
@@ -742,4 +744,6 @@
@end
+#endif // !ENABLE(MINIMAL_SIMULATOR)
+
#endif // PLATFORM(IOS)
Modified: trunk/Source/WebKit/UIProcess/ios/WKLegacyPDFView.mm (230267 => 230268)
--- trunk/Source/WebKit/UIProcess/ios/WKLegacyPDFView.mm 2018-04-04 18:26:24 UTC (rev 230267)
+++ trunk/Source/WebKit/UIProcess/ios/WKLegacyPDFView.mm 2018-04-04 18:28:58 UTC (rev 230268)
@@ -866,6 +866,8 @@
#pragma mark Printing
+#if !ENABLE(MINIMAL_SIMULATOR)
+
@interface WKLegacyPDFView (_WKWebViewPrintFormatter) <_WKWebViewPrintProvider>
@end
@@ -891,6 +893,8 @@
@end
+#endif // !ENABLE(MINIMAL_SIMULATOR)
+
#pragma clang diagnostic pop
#endif // PLATFORM(IOS) && ENABLE(WKPDFVIEW)