Bug 811002 - Part 2: Never create a DIB when printing. r=bas

This commit is contained in:
Brendan Dahl 2013-10-25 14:50:29 +00:00
parent 8792fa2a8c
commit 45780df00e

View File

@ -125,7 +125,7 @@ gfxWindowsSurface::CreateSimilarSurface(gfxContentType aContent,
}
cairo_surface_t *surface;
if (GetContentType() == GFX_CONTENT_COLOR_ALPHA) {
if (!mForPrinting && GetContentType() == GFX_CONTENT_COLOR_ALPHA) {
// When creating a similar surface to a transparent surface, ensure
// the new surface uses a DIB. cairo_surface_create_similar won't
// use a DIB for a GFX_CONTENT_COLOR surface if this surface doesn't