mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-21 22:57:31 +09:00
[printing] Fix build bustage with --disable-printing
This commit is contained in:
parent
f6b3f2c38b
commit
a13f638d23
2 changed files with 6 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ PrintTargetWindows::PrintTargetWindows(cairo_surface_t* aCairoSurface,
|
||||||
/* static */ already_AddRefed<PrintTargetWindows>
|
/* static */ already_AddRefed<PrintTargetWindows>
|
||||||
PrintTargetWindows::CreateOrNull(HDC aDC)
|
PrintTargetWindows::CreateOrNull(HDC aDC)
|
||||||
{
|
{
|
||||||
|
#ifdef NS_PRINTING
|
||||||
// Figure out the cairo surface size - Windows we need to use the printable
|
// Figure out the cairo surface size - Windows we need to use the printable
|
||||||
// area of the page. Note: we only scale the printing using the LOGPIXELSY,
|
// area of the page. Note: we only scale the printing using the LOGPIXELSY,
|
||||||
// so we use that when calculating the surface width as well as the height.
|
// so we use that when calculating the surface width as well as the height.
|
||||||
|
|
@ -51,6 +52,9 @@ PrintTargetWindows::CreateOrNull(HDC aDC)
|
||||||
new PrintTargetWindows(surface, size, aDC);
|
new PrintTargetWindows(surface, size, aDC);
|
||||||
|
|
||||||
return target.forget();
|
return target.forget();
|
||||||
|
#else
|
||||||
|
return nullptr;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
nsresult
|
nsresult
|
||||||
|
|
|
||||||
|
|
@ -544,10 +544,12 @@ nsDocumentViewer::~nsDocumentViewer()
|
||||||
mDocument->Destroy();
|
mDocument->Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef NS_PRINTING
|
||||||
if (mPrintEngine) {
|
if (mPrintEngine) {
|
||||||
mPrintEngine->Destroy();
|
mPrintEngine->Destroy();
|
||||||
mPrintEngine = nullptr;
|
mPrintEngine = nullptr;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
MOZ_RELEASE_ASSERT(mDestroyRefCount == 0);
|
MOZ_RELEASE_ASSERT(mDestroyRefCount == 0);
|
||||||
NS_ASSERTION(!mPresShell && !mPresContext,
|
NS_ASSERTION(!mPresShell && !mPresContext,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue