Bug 1316338 - Make PrintTargetThebes set mHasActivePage as appropriate. r=lsalzman
authorJonathan Watt <jwatt@jwatt.org>
Wed, 02 Nov 2016 12:41:19 +0000
changeset 351963 ef7bd28df4eca8b610f0f6aa1327ff1d81ba2f3a
parent 351962 23f27301062dea942d1d2214aab9e8ba0529d96a
child 351964 3c43332516cc73d418f03fff2e247865a051b207
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslsalzman
bugs1316338
milestone52.0a1
Bug 1316338 - Make PrintTargetThebes set mHasActivePage as appropriate. r=lsalzman
gfx/thebes/PrintTargetThebes.cpp
--- a/gfx/thebes/PrintTargetThebes.cpp
+++ b/gfx/thebes/PrintTargetThebes.cpp
@@ -81,28 +81,37 @@ nsresult
 PrintTargetThebes::EndPrinting()
 {
   return mGfxSurface->EndPrinting();
 }
 
 nsresult
 PrintTargetThebes::AbortPrinting()
 {
+#ifdef DEBUG
+  mHasActivePage = false;
+#endif
   return mGfxSurface->AbortPrinting();
 }
 
 nsresult
 PrintTargetThebes::BeginPage()
 {
+#ifdef DEBUG
+  mHasActivePage = true;
+#endif
   return mGfxSurface->BeginPage();
 }
 
 nsresult
 PrintTargetThebes::EndPage()
 {
+#ifdef DEBUG
+  mHasActivePage = false;
+#endif
   return mGfxSurface->EndPage();
 }
 
 void
 PrintTargetThebes::Finish()
 {
   return mGfxSurface->Finish();
 }