Bug 1427109 - Initialize mPrintViaSkPDF as false to guarantee PrintTargetEMF is used only if 'print.print_via_pdf_encoder == skia-pdf'. r=jwatt
authorcku <cku@mozilla.com>
Tue, 09 Jan 2018 16:44:36 +0800
changeset 450762 179d25b3000055ef640f33339745a6c6669ab20a
parent 450761 85eb824006694370bcf6cb78aed7aeb11d8ab5d1
child 450763 117e832dcd6e6e7e5b1a4576d211ec1ccb1a6a47
push id8543
push userryanvm@gmail.com
push dateTue, 16 Jan 2018 14:33:22 +0000
treeherdermozilla-beta@a6525ed16a32 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwatt
bugs1427109
milestone59.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1427109 - Initialize mPrintViaSkPDF as false to guarantee PrintTargetEMF is used only if 'print.print_via_pdf_encoder == skia-pdf'. r=jwatt MozReview-Commit-ID: 950x2vDfF17
widget/windows/nsDeviceContextSpecWin.cpp
--- a/widget/windows/nsDeviceContextSpecWin.cpp
+++ b/widget/windows/nsDeviceContextSpecWin.cpp
@@ -91,18 +91,21 @@ struct AutoFreeGlobalPrinters
 {
   ~AutoFreeGlobalPrinters() {
     GlobalPrinters::GetInstance()->FreeGlobalPrinters();
   }
 };
 
 //----------------------------------------------------------------------------------
 nsDeviceContextSpecWin::nsDeviceContextSpecWin()
+  : mDevMode(nullptr)
+#ifdef MOZ_ENABLE_SKIA_PDF
+  , mPrintViaSkPDF(false)
+#endif
 {
-  mDevMode       = nullptr;
 }
 
 
 //----------------------------------------------------------------------------------
 
 NS_IMPL_ISUPPORTS(nsDeviceContextSpecWin, nsIDeviceContextSpec)
 
 nsDeviceContextSpecWin::~nsDeviceContextSpecWin()