Bug 1316750 - Fix CAIRO_SURFACE_TYPE_WIN32 warnings as errors case. r=me CLOSED TREE
☠☠ backed out by 91b1add28ef6 ☠ ☠
authorJonathan Watt <jwatt@jwatt.org>
Mon, 14 Nov 2016 11:52:50 +0000
changeset 438643 fb46a1dc34f92d6c8d9a2244edd73e2d394af5db
parent 438642 5fc1551aa541e1c32d903eb2a95afbf2ee8447fc
child 438644 888f093ce01504fb472d0646d29c08bcc5ef7b75
push id35794
push usersledru@mozilla.com
push dateMon, 14 Nov 2016 22:18:09 +0000
reviewersme
bugs1316750
milestone52.0a1
Bug 1316750 - Fix CAIRO_SURFACE_TYPE_WIN32 warnings as errors case. r=me CLOSED TREE
gfx/thebes/PrintTarget.cpp
--- a/gfx/thebes/PrintTarget.cpp
+++ b/gfx/thebes/PrintTarget.cpp
@@ -92,16 +92,19 @@ PrintTarget::MakeDrawTarget(const IntSiz
 already_AddRefed<DrawTarget>
 PrintTarget::GetReferenceDrawTarget(DrawEventRecorder* aRecorder)
 {
   if (!mRefDT) {
     const IntSize size(1, 1);
 
     cairo_surface_t* similar;
     switch (cairo_surface_get_type(mCairoSurface)) {
+#ifdef CAIRO_HAS_WIN32_SURFACE
+    case CAIRO_SURFACE_TYPE_WIN32:
+#endif
 #ifdef CAIRO_HAS_QUARTZ_SURFACE
     case CAIRO_SURFACE_TYPE_QUARTZ:
       similar = cairo_quartz_surface_create_cg_layer(
                   mCairoSurface, cairo_surface_get_content(mCairoSurface),
                   size.width, size.height);
       break;
 #endif
     default: