mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 14:15:30 +00:00
Backed out changeset d88c174c2d20 (bug 675709)
This commit is contained in:
parent
b2963d0f81
commit
463433cf37
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user