From 216a445846c995e88694a2ba65974d48bc3b92b0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 22 Jan 2011 17:32:34 +0100 Subject: Firefox 4.0b10 build1 candidate --- xulrunner-2.0-system-cairo-tee.patch | 56 ++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 xulrunner-2.0-system-cairo-tee.patch (limited to 'xulrunner-2.0-system-cairo-tee.patch') diff --git a/xulrunner-2.0-system-cairo-tee.patch b/xulrunner-2.0-system-cairo-tee.patch new file mode 100644 index 0000000..4bc1c82 --- /dev/null +++ b/xulrunner-2.0-system-cairo-tee.patch @@ -0,0 +1,56 @@ +diff -up mozilla-central/gfx/thebes/gfxContext.cpp.system-cairo-tee mozilla-central/gfx/thebes/gfxContext.cpp +--- mozilla-central/gfx/thebes/gfxContext.cpp.system-cairo-tee 2011-01-22 01:25:38.000000000 +0100 ++++ mozilla-central/gfx/thebes/gfxContext.cpp 2011-01-22 16:36:13.796269437 +0100 +@@ -782,6 +782,7 @@ gfxContext::PushGroupAndCopyBackground(g + cairo_push_group_with_content(mCairo, CAIRO_CONTENT_COLOR); + nsRefPtr d = CurrentSurface(); + ++#if CAIRO_HAS_TEE_SURFACE + if (d->GetType() == gfxASurface::SurfaceTypeTee) { + NS_ASSERTION(s->GetType() == gfxASurface::SurfaceTypeTee, "Mismatched types"); + nsAutoTArray,2> ss; +@@ -793,7 +794,9 @@ gfxContext::PushGroupAndCopyBackground(g + for (PRUint32 i = 0; i < ss.Length(); ++i) { + CopySurface(ss[i], ds[i], translation); + } +- } else { ++ } else ++#endif ++ { + CopySurface(s, d, gfxPoint(0, 0)); + } + d->SetOpaqueRect(s->GetOpaqueRect()); +diff -up mozilla-central/gfx/thebes/gfxTeeSurface.cpp.system-cairo-tee mozilla-central/gfx/thebes/gfxTeeSurface.cpp +--- mozilla-central/gfx/thebes/gfxTeeSurface.cpp.system-cairo-tee 2011-01-22 01:25:38.000000000 +0100 ++++ mozilla-central/gfx/thebes/gfxTeeSurface.cpp 2011-01-22 16:32:36.626717637 +0100 +@@ -39,6 +39,7 @@ + + #include "cairo.h" + ++#if CAIRO_HAS_TEE_SURFACE + gfxTeeSurface::gfxTeeSurface(cairo_surface_t *csurf) + { + Init(csurf, PR_TRUE); +@@ -75,3 +76,4 @@ gfxTeeSurface::GetSurfaces(nsTArray > *aSurfaces); + }; ++#endif + + #endif /* GFX_TEESURFACE_H */ -- cgit