summaryrefslogtreecommitdiff
path: root/gfx/thebes
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-05-21 16:22:51 +0000
committerMoonchild <moonchild@palemoon.org>2020-05-21 16:22:51 +0000
commited8efdfaba9e613cc3568105acbe3ee785100333 (patch)
treee0c8f79ae2941fb190562d2aab272c759e182d78 /gfx/thebes
parent5d6691e9d08dce30b461fced32ece77fd3ff1933 (diff)
downloaduxp-ed8efdfaba9e613cc3568105acbe3ee785100333.tar.gz
[printing] Fix build bustage with --disable-printing
Diffstat (limited to 'gfx/thebes')
-rw-r--r--gfx/thebes/PrintTargetWindows.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gfx/thebes/PrintTargetWindows.cpp b/gfx/thebes/PrintTargetWindows.cpp
index 4f22adacfe..5867a47723 100644
--- a/gfx/thebes/PrintTargetWindows.cpp
+++ b/gfx/thebes/PrintTargetWindows.cpp
@@ -26,6 +26,7 @@ PrintTargetWindows::PrintTargetWindows(cairo_surface_t* aCairoSurface,
/* static */ already_AddRefed<PrintTargetWindows>
PrintTargetWindows::CreateOrNull(HDC aDC)
{
+#ifdef NS_PRINTING
// 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,
// 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);
return target.forget();
+#else
+ return nullptr;
+#endif
}
nsresult