From 9084f0473bde37424584af8447bd4a440f0f1c45 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 26 Jan 2011 17:48:44 +0100 Subject: Firefox 4.0 beta 10 --- xulrunner-2.0-system-cairo-tee.patch | 79 ++++++++++++------------------------ 1 file changed, 26 insertions(+), 53 deletions(-) (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 index 4bc1c82..85c8447 100644 --- a/xulrunner-2.0-system-cairo-tee.patch +++ b/xulrunner-2.0-system-cairo-tee.patch @@ -1,56 +1,29 @@ -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(); +https://bugzilla.mozilla.org/show_bug.cgi?id=623797 + +# HG changeset patch +# User Jory A. Pratt (anarchy@gentoo.org) +# Parent b27366868c807e07a11741a7a2eb404ebc08e5e7 +Check to ensure system cairo has tee backend support, part 2 bug #623797 + +diff --git a/configure.in b/configure.in +--- a/configure.in ++++ b/configure.in +@@ -8714,16 +8714,17 @@ if test "$MOZ_TREE_CAIRO"; then -+#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 @@ + CAIRO_FEATURES_H=gfx/cairo/cairo/src/cairo-features.h + mv -f $CAIRO_FEATURES_H "$CAIRO_FEATURES_H".orig 2> /dev/null - #include "cairo.h" + else + PKG_CHECK_MODULES(CAIRO, cairo >= $CAIRO_VERSION pixman-1 freetype2 fontconfig) + MOZ_CAIRO_CFLAGS=$CAIRO_CFLAGS + MOZ_CAIRO_LIBS=$CAIRO_LIBS ++ PKG_CHECK_MODULES(CAIRO_TEE, cairo-tee >= $CAIRO_VERSION) + if test "$MOZ_X11"; then + PKG_CHECK_MODULES(CAIRO_XRENDER, cairo-xlib-xrender >= $CAIRO_VERSION) + MOZ_CAIRO_LIBS="$MOZ_CAIRO_LIBS $XLDFLAGS $CAIRO_XRENDER_LIBS" + MOZ_CAIRO_CFLAGS="$MOZ_CAIRO_CFLAGS $CAIRO_XRENDER_CFLAGS" + fi + fi -+#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 */ + AC_SUBST(MOZ_TREE_CAIRO) + -- cgit