Bug 551945: Fix a mistake in double pass from changeset 53a85c489708. r=jfkthame
authorBas Schouten <bschouten@mozilla.com>
Fri, 12 Mar 2010 14:09:53 +0100
changeset 39355 3f7f0781120f8f7fb33195d3f54e4bddec35dc93
parent 39354 1f6e7d174f0f75f3ebad9582c42111dd27730726
child 39356 dd5101bf0a38bad010007e95b2951b83284bb008
push id12138
push userbschouten@mozilla.com
push dateFri, 12 Mar 2010 13:10:21 +0000
treeherdermozilla-central@3f7f0781120f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjfkthame
bugs551945
milestone1.9.3a3pre
Bug 551945: Fix a mistake in double pass from changeset 53a85c489708. r=jfkthame
gfx/thebes/src/gfxWindowsNativeDrawing.cpp
--- a/gfx/thebes/src/gfxWindowsNativeDrawing.cpp
+++ b/gfx/thebes/src/gfxWindowsNativeDrawing.cpp
@@ -210,17 +210,17 @@ gfxWindowsNativeDrawing::BeginNativeDraw
 }
 
 PRBool
 gfxWindowsNativeDrawing::IsDoublePass()
 {
     nsRefPtr<gfxASurface> surf = mContext->CurrentSurface(&mDeviceOffset.x, &mDeviceOffset.y);
     if (!surf || surf->CairoStatus())
         return false;
-    if (surf->GetType() != gfxASurface::SurfaceTypeWin32 ||
+    if (surf->GetType() != gfxASurface::SurfaceTypeWin32 &&
 	surf->GetType() != gfxASurface::SurfaceTypeWin32Printing) {
 	return PR_TRUE;
     }
     if ((surf->GetContentType() != gfxASurface::CONTENT_COLOR ||
          (surf->GetContentType() == gfxASurface::CONTENT_COLOR_ALPHA &&
           !(mNativeDrawFlags & CAN_DRAW_TO_COLOR_ALPHA))))
         return PR_TRUE;
     return PR_FALSE;