Commit 1984e12c authored by ap@apple.com's avatar ap@apple.com
Browse files

2011-01-28 Alexey Proskuryakov <ap@apple.com>

        Reviewed by Dan Bernstein.

        https://bugs.webkit.org/show_bug.cgi?id=53367
        <rdar://problem/8926460> Remove dysfunctional code from -[WKPrintingView _isPrintingPreview].

        * UIProcess/API/mac/WKPrintingView.mm: (-[WKPrintingView _isPrintingPreview]): The common
        branch works fine for now, no need to make platforms different.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77051 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 61acd1c1
2011-01-28 Alexey Proskuryakov <ap@apple.com>
Reviewed by Dan Bernstein.
https://bugs.webkit.org/show_bug.cgi?id=53367
<rdar://problem/8926460> Remove dysfunctional code from -[WKPrintingView _isPrintingPreview].
* UIProcess/API/mac/WKPrintingView.mm: (-[WKPrintingView _isPrintingPreview]): The common
branch works fine for now, no need to make platforms different.
2011-01-28 Maciej Stachowiak <mjs@apple.com>
 
Reviewed by Dan Bernstein.
......@@ -94,12 +94,8 @@ NSString * const NSPrintInfoDidChangeNotification = @"NSPrintInfoDidChange";
- (BOOL)_isPrintingPreview
{
// <rdar://problem/8901041> Please add an API returning whether the current print operation is for preview.
#if !defined(BUILDING_ON_SNOW_LEOPARD)
return [_printOperation preferredRenderingQuality] == NSPrintRenderingQualityResponsive;
#else
// Assuming that if NSPrintOperation is allowed to spawn a thread for printing, it will. Print preview doesn't spawn a thread.
return !_isPrintingFromSecondaryThread;
#endif
}
- (void)_updatePreview
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment