Bug 1380301 - Add missing "#ifdef MOZ_ENABLE_SKIA_PDF" to nsDeviceContextSpecWin.h draft
authorFarmer Tseng <fatseng@mozilla.com>
Thu, 13 Jul 2017 13:07:18 +0800
changeset 608064 ee3418d4f7dbd6f52766a4f66c9911ac7c3e48d3
parent 604545 7b5e718c7fe5dbeee13bbd7a0c958cd285d0833f
child 608065 75ff20ee21f95029c122ff21ea7811f5a8de48bb
push id68170
push userbmo:fatseng@mozilla.com
push dateThu, 13 Jul 2017 05:37:40 +0000
bugs1380301
milestone56.0a1
Bug 1380301 - Add missing "#ifdef MOZ_ENABLE_SKIA_PDF" to nsDeviceContextSpecWin.h MozReview-Commit-ID: YxvOID7Xbp
widget/windows/nsDeviceContextSpecWin.h
--- a/widget/windows/nsDeviceContextSpecWin.h
+++ b/widget/windows/nsDeviceContextSpecWin.h
@@ -22,17 +22,19 @@ namespace mozilla {
 namespace widget {
 class PDFViaEMFPrintHelper;
 }
 }
 #endif
 
 class nsDeviceContextSpecWin : public nsIDeviceContextSpec
 {
+#ifdef MOZ_ENABLE_SKIA_PDF
   typedef mozilla::widget::PDFViaEMFPrintHelper PDFViaEMFPrintHelper;
+#endif
 
 public:
   nsDeviceContextSpecWin();
 
   NS_DECL_ISUPPORTS
 
   virtual already_AddRefed<PrintTarget> MakePrintTarget() final;
   NS_IMETHOD BeginDocument(const nsAString& aTitle,