From ed8efdfaba9e613cc3568105acbe3ee785100333 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Thu, 21 May 2020 16:22:51 +0000 Subject: [printing] Fix build bustage with --disable-printing --- gfx/thebes/PrintTargetWindows.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gfx/thebes') diff --git a/gfx/thebes/PrintTargetWindows.cpp b/gfx/thebes/PrintTargetWindows.cpp index 4f22adacf..5867a4772 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::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 -- cgit v1.2.3