From 6d5ee10f7b60baccb08e8b9a985635207693198c Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 25 Apr 2012 08:35:28 +0000 Subject: main/xulrunner: upgrade to 12.0 --- main/xulrunner/cairo.patch | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 main/xulrunner/cairo.patch (limited to 'main/xulrunner/cairo.patch') diff --git a/main/xulrunner/cairo.patch b/main/xulrunner/cairo.patch new file mode 100644 index 000000000..19ba1ef8e --- /dev/null +++ b/main/xulrunner/cairo.patch @@ -0,0 +1,35 @@ +--- firefox/gfx/thebes/gfxPlatform.cpp~ 2012-02-07 11:59:39.717184907 +0000 ++++ firefox/gfx/thebes/gfxPlatform.cpp 2012-02-07 13:06:01.084668445 +0000 +@@ -446,6 +446,7 @@ + static_cast(srcBuffer)->Release(); + } + ++#ifdef MOZ_TREE_CAIRO + void SourceSnapshotDetached(cairo_surface_t *nullSurf) + { + gfxImageSurface* origSurf = +@@ -453,6 +454,7 @@ + + origSurf->SetData(&kSourceSurface, NULL, NULL); + } ++#endif + + RefPtr + gfxPlatform::GetSourceSurfaceForSurface(DrawTarget *aTarget, gfxASurface *aSurface) +@@ -522,6 +524,7 @@ + imgSurface->Stride(), + format); + ++ #ifdef MOZ_TREE_CAIRO + cairo_surface_t *nullSurf = + cairo_null_surface_create(CAIRO_CONTENT_COLOR_ALPHA); + cairo_surface_set_user_data(nullSurf, +@@ -530,6 +533,7 @@ + NULL); + cairo_surface_attach_snapshot(imgSurface->CairoSurface(), nullSurf, SourceSnapshotDetached); + cairo_surface_destroy(nullSurf); ++ #endif + } + + srcBuffer->AddRef(); + -- cgit v1.2.3