summaryrefslogtreecommitdiff
path: root/~emulatorman/icecat/cairo.patch
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-01-17 18:41:43 -0200
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-01-17 18:41:43 -0200
commitaeb81933f22181e922a0fa91feb27da923d703bc (patch)
treed369c7c92cc981aa47070d52dca712923f3356bc /~emulatorman/icecat/cairo.patch
parentd2c8976a6f2f4da940e0fd4cee7d6ca403221661 (diff)
downloadabslibre-aeb81933f22181e922a0fa91feb27da923d703bc.tar.gz
abslibre-aeb81933f22181e922a0fa91feb27da923d703bc.tar.bz2
abslibre-aeb81933f22181e922a0fa91feb27da923d703bc.zip
backing mozilla and ice packs files
Diffstat (limited to '~emulatorman/icecat/cairo.patch')
-rw-r--r--~emulatorman/icecat/cairo.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/~emulatorman/icecat/cairo.patch b/~emulatorman/icecat/cairo.patch
new file mode 100644
index 000000000..a1fabee90
--- /dev/null
+++ b/~emulatorman/icecat/cairo.patch
@@ -0,0 +1,33 @@
+--- a/gfx/thebes/gfxPlatform.cpp
++++ b/gfx/thebes/gfxPlatform.cpp
+@@ -459,11 +459,9 @@ void SourceBufferDestroy(void *srcBuffer)
+ static_cast<SourceSurface*>(srcBuffer)->Release();
+ }
+
+-void SourceSnapshotDetached(cairo_surface_t *nullSurf)
++void SourceSnapshotDetached(void *nullSurf)
+ {
+- gfxImageSurface* origSurf =
+- static_cast<gfxImageSurface*>(cairo_surface_get_user_data(nullSurf, &kSourceSurface));
+-
++ gfxImageSurface *origSurf = static_cast<gfxImageSurface*>(nullSurf);
+ origSurf->SetData(&kSourceSurface, NULL, NULL);
+ }
+
+@@ -535,14 +533,8 @@ gfxPlatform::GetSourceSurfaceForSurface(DrawTarget *aTarget, gfxASurface *aSurfa
+ imgSurface->Stride(),
+ format);
+
+- cairo_surface_t *nullSurf =
+- cairo_null_surface_create(CAIRO_CONTENT_COLOR_ALPHA);
+- cairo_surface_set_user_data(nullSurf,
+- &kSourceSurface,
+- imgSurface,
+- NULL);
+- cairo_surface_attach_snapshot(imgSurface->CairoSurface(), nullSurf, SourceSnapshotDetached);
+- cairo_surface_destroy(nullSurf);
++ cairo_surface_set_mime_data(imgSurface->CairoSurface(), "mozilla/magic",
++ (const unsigned char *) "data", 4, SourceSnapshotDetached, imgSurface.get());
+ }
+
+ srcBuffer->AddRef();