pkgsrc/devel/xulrunner17/patches/patch-gfx_thebes_gfxPlatform.cpp
ryoon 27af90c8a6 Import xulrunner17-17.0.2 as devel/xulrunner17.
XULRunner is a runtime environment for applications using the
XML User Interface Language, XUL. It is the successor of the "Gecko"
runtime environment.

This package tracks 17.0.x extended support release.
2013-01-10 16:17:09 +00:00

36 lines
1.1 KiB
C++

$NetBSD: patch-gfx_thebes_gfxPlatform.cpp,v 1.1 2013/01/10 16:17:10 ryoon Exp $
--- gfx/thebes/gfxPlatform.cpp.orig 2012-08-24 22:55:35.000000000 +0000
+++ gfx/thebes/gfxPlatform.cpp
@@ -443,6 +443,7 @@ void SourceBufferDestroy(void *srcBuffer
static_cast<SourceSurface*>(srcBuffer)->Release();
}
+#ifdef MOZ_TREE_CAIRO
void SourceSnapshotDetached(cairo_surface_t *nullSurf)
{
gfxImageSurface* origSurf =
@@ -450,6 +451,7 @@ void SourceSnapshotDetached(cairo_surfac
origSurf->SetData(&kSourceSurface, NULL, NULL);
}
+#endif
RefPtr<SourceSurface>
gfxPlatform::GetSourceSurfaceForSurface(DrawTarget *aTarget, gfxASurface *aSurface)
@@ -544,6 +546,7 @@ gfxPlatform::GetSourceSurfaceForSurface(
}
+ #ifdef MOZ_TREE_CAIRO
cairo_surface_t *nullSurf =
cairo_null_surface_create(CAIRO_CONTENT_COLOR_ALPHA);
cairo_surface_set_user_data(nullSurf,
@@ -552,6 +555,7 @@ gfxPlatform::GetSourceSurfaceForSurface(
NULL);
cairo_surface_attach_snapshot(imgSurface->CairoSurface(), nullSurf, SourceSnapshotDetached);
cairo_surface_destroy(nullSurf);
+ #endif
}
srcBuffer->AddRef();