diff --git a/gfx/thebes/gfxWindowsPlatform.h b/gfx/thebes/gfxWindowsPlatform.h index 99e9f5211667..c00332244b4d 100644 --- a/gfx/thebes/gfxWindowsPlatform.h +++ b/gfx/thebes/gfxWindowsPlatform.h @@ -60,7 +60,7 @@ struct DCFromContext { DCFromContext(gfxContext *aContext) { dc = nullptr; nsRefPtr aSurface = aContext->CurrentSurface(); - NS_ASSERTION(aSurface, "DCFromContext: null surface"); + NS_ASSERTION(aSurface || !aContext->IsCairo(), "DCFromContext: null surface"); if (aSurface && (aSurface->GetType() == gfxASurface::SurfaceTypeWin32 || aSurface->GetType() == gfxASurface::SurfaceTypeWin32Printing))