Backed out changeset d88c174c2d20 (bug 675709)

This commit is contained in:
Sebastian Hengst 2017-02-05 20:52:53 +01:00
parent b2963d0f81
commit 463433cf37

View File

@ -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();