Bug 627262. gfxQuartzSurfaces should disable the copy-background optimization when printing. r=jrmuizel,a=blocking
authorRobert O'Callahan <robert@ocallahan.org>
Tue, 25 Jan 2011 21:46:30 +1300
changeset 61259 4568082aec55e3d6798526563ba2294b3f7b0d2e
parent 61258 dd3dcc6f3b1de0680bc050feea426288bbe263e7
child 61260 c93381b53df3c59c3be379d247d5663bc796db99
push id18279
push userrocallahan@mozilla.com
push dateTue, 25 Jan 2011 08:48:54 +0000
treeherdermozilla-central@4568082aec55 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjrmuizel, blocking
bugs627262
milestone2.0b10pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 627262. gfxQuartzSurfaces should disable the copy-background optimization when printing. r=jrmuizel,a=blocking
gfx/thebes/gfxQuartzSurface.cpp
--- a/gfx/thebes/gfxQuartzSurface.cpp
+++ b/gfx/thebes/gfxQuartzSurface.cpp
@@ -131,17 +131,18 @@ CGContextRef
 gfxQuartzSurface::GetCGContextWithClip(gfxContext *ctx)
 {
 	return cairo_quartz_get_cg_context_with_clip(ctx->GetCairo());
 }
 
 PRInt32 gfxQuartzSurface::GetDefaultContextFlags() const
 {
     if (mForPrinting)
-        return gfxContext::FLAG_DISABLE_SNAPPING;
+        return gfxContext::FLAG_DISABLE_SNAPPING |
+               gfxContext::FLAG_DISABLE_COPY_BACKGROUND;
 
     return 0;
 }
 
 already_AddRefed<gfxImageSurface> gfxQuartzSurface::GetAsImageSurface()
 {
     cairo_surface_t *surface = cairo_quartz_surface_get_image(mSurface);
     if (!surface)