Title: [207349] trunk/Tools
Revision
207349
Author
simon.fra...@apple.com
Date
2016-10-14 11:26:40 -0700 (Fri, 14 Oct 2016)

Log Message

Fix printing in WK2 MiniBrowser
https://bugs.webkit.org/show_bug.cgi?id=163455

Reviewed by Tim Horton.

Call the basic -_printOperationWithPrintInfo: which doens't require a frame argument.

* MiniBrowser/mac/WK2BrowserWindowController.m:
(-[WK2BrowserWindowController printWebView:]):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (207348 => 207349)


--- trunk/Tools/ChangeLog	2016-10-14 18:16:26 UTC (rev 207348)
+++ trunk/Tools/ChangeLog	2016-10-14 18:26:40 UTC (rev 207349)
@@ -1,3 +1,15 @@
+2016-10-14  Simon Fraser  <simon.fra...@apple.com>
+
+        Fix printing in WK2 MiniBrowser
+        https://bugs.webkit.org/show_bug.cgi?id=163455
+
+        Reviewed by Tim Horton.
+        
+        Call the basic -_printOperationWithPrintInfo: which doens't require a frame argument.
+
+        * MiniBrowser/mac/WK2BrowserWindowController.m:
+        (-[WK2BrowserWindowController printWebView:]):
+
 2016-10-14  Commit Queue  <commit-qu...@webkit.org>
 
         Unreviewed, rolling out r207335.

Modified: trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.m (207348 => 207349)


--- trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.m	2016-10-14 18:16:26 UTC (rev 207348)
+++ trunk/Tools/MiniBrowser/mac/WK2BrowserWindowController.m	2016-10-14 18:26:40 UTC (rev 207349)
@@ -542,7 +542,7 @@
 
 - (IBAction)printWebView:(id)sender
 {
-    [[_webView _printOperationWithPrintInfo:[NSPrintInfo sharedPrintInfo] forFrame:nil] runOperationModalForWindow:self.window delegate:nil didRunSelector:nil contextInfo:nil];
+    [[_webView _printOperationWithPrintInfo:[NSPrintInfo sharedPrintInfo]] runOperationModalForWindow:self.window delegate:nil didRunSelector:nil contextInfo:nil];
 }
 
 #pragma mark WKNavigationDelegate
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to