From 463433cf37a96def95d843da5667a68d0069645a Mon Sep 17 00:00:00 2001 From: Sebastian Hengst Date: Sun, 5 Feb 2017 20:52:53 +0100 Subject: [PATCH] Backed out changeset d88c174c2d20 (bug 675709) --- widget/cocoa/nsDeviceContextSpecX.mm | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/widget/cocoa/nsDeviceContextSpecX.mm b/widget/cocoa/nsDeviceContextSpecX.mm index a22572b614b0..0a72af8ed89a 100644 --- a/widget/cocoa/nsDeviceContextSpecX.mm +++ b/widget/cocoa/nsDeviceContextSpecX.mm @@ -64,19 +64,6 @@ NS_IMETHODIMP nsDeviceContextSpecX::Init(nsIWidget *aWidget, if (!settings) return NS_ERROR_NO_INTERFACE; - bool toFile; - settings->GetPrintToFile(&toFile); - - bool toPrinter = !toFile && !aIsPrintPreview; - if (!toPrinter) { - double width, height; - settings->GetEffectivePageSize(&width, &height); - width /= TWIPS_PER_POINT_FLOAT; - height /= TWIPS_PER_POINT_FLOAT; - - settings->SetCocoaPaperSize(width, height); - } - mPrintSession = settings->GetPMPrintSession(); ::PMRetain(mPrintSession); mPageFormat = settings->GetPMPageFormat();