mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
These are called as backstops in case a PrnitSettings was not passed in
at the moment these lines are not executed Part of Bug 126734 r=ducarroz sr=spitzer a=asa
This commit is contained in:
parent
f715532b20
commit
05f3ce15a4
@ -1528,7 +1528,7 @@ NS_IMETHODIMP nsMessenger::DoPrint()
|
||||
nsCOMPtr<nsIWebBrowserPrint> webBrowserPrint = do_QueryInterface(viewer);
|
||||
if (webBrowserPrint) {
|
||||
nsCOMPtr<nsIPrintSettings> printSettings;
|
||||
webBrowserPrint->GetNewPrintSettings(getter_AddRefs(printSettings));
|
||||
webBrowserPrint->GetGlobalPrintSettings(getter_AddRefs(printSettings));
|
||||
rv = webBrowserPrint->Print(printSettings, (nsIWebProgressListener*)nsnull);
|
||||
}
|
||||
#ifdef DEBUG_MESSENGER
|
||||
|
@ -147,7 +147,7 @@ nsMsgPrintEngine::OnStateChange(nsIWebProgress* aWebProgress,
|
||||
{
|
||||
if (!mPrintSettings)
|
||||
{
|
||||
mWebBrowserPrint->GetNewPrintSettings(getter_AddRefs(mPrintSettings));
|
||||
mWebBrowserPrint->GetGlobalPrintSettings(getter_AddRefs(mPrintSettings));
|
||||
}
|
||||
mPrintSettings->SetPrintSilent(mCurrentlyPrintingURI != 0);
|
||||
rv = mWebBrowserPrint->Print(mPrintSettings, (nsIWebProgressListener *)this);
|
||||
|
Loading…
Reference in New Issue
Block a user