diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-04-25 08:35:28 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-04-25 08:35:28 +0000 |
commit | 6d5ee10f7b60baccb08e8b9a985635207693198c (patch) | |
tree | 4206fc246f3d70d4f49fcbbe272baf2caaa22bb6 /main/xulrunner/cairo.patch | |
parent | a261cb29c4aef6f54b906b2d6705da455511333f (diff) | |
download | aports-6d5ee10f7b60baccb08e8b9a985635207693198c.tar.bz2 aports-6d5ee10f7b60baccb08e8b9a985635207693198c.tar.xz |
main/xulrunner: upgrade to 12.0
Diffstat (limited to 'main/xulrunner/cairo.patch')
-rw-r--r-- | main/xulrunner/cairo.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/main/xulrunner/cairo.patch b/main/xulrunner/cairo.patch new file mode 100644 index 0000000000..19ba1ef8ed --- /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<SourceSurface*>(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<SourceSurface> + 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(); + |