aboutsummaryrefslogtreecommitdiff
path: root/mail/thunderbird/files/patch-mozilla-gfx-thebes-gfxPlatform.cpp
diff options
context:
space:
mode:
authorBeat Gaetzi <beat@FreeBSD.org>2012-04-25 04:51:59 +0000
committerBeat Gaetzi <beat@FreeBSD.org>2012-04-25 04:51:59 +0000
commit5d1bdd789c20819a25ccb974a8619073098ddb7e (patch)
tree2c310cc49005dcb307974eddaad9cf5351680b0b /mail/thunderbird/files/patch-mozilla-gfx-thebes-gfxPlatform.cpp
parenta4a3a3c37ac07b0bd68369c163353bc038471c9a (diff)
downloadports-5d1bdd789c20819a25ccb974a8619073098ddb7e.tar.gz
ports-5d1bdd789c20819a25ccb974a8619073098ddb7e.zip
- Update to 12.0
Notes
Notes: svn path=/head/; revision=295450
Diffstat (limited to 'mail/thunderbird/files/patch-mozilla-gfx-thebes-gfxPlatform.cpp')
-rw-r--r--mail/thunderbird/files/patch-mozilla-gfx-thebes-gfxPlatform.cpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/mail/thunderbird/files/patch-mozilla-gfx-thebes-gfxPlatform.cpp b/mail/thunderbird/files/patch-mozilla-gfx-thebes-gfxPlatform.cpp
new file mode 100644
index 000000000000..e7dc51335465
--- /dev/null
+++ b/mail/thunderbird/files/patch-mozilla-gfx-thebes-gfxPlatform.cpp
@@ -0,0 +1,34 @@
+--- mozilla/gfx/thebes/gfxPlatform.cpp~ 2012-02-07 11:59:39.717184907 +0000
++++ mozilla/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();