diff options
author | Fredrik Rinnestam <fredrik@crux.nu> | 2013-11-28 20:36:39 +0100 |
---|---|---|
committer | Fredrik Rinnestam <fredrik@crux.nu> | 2013-12-05 19:40:41 +0100 |
commit | ddc967dcbc30a4b4e71e71a0a154db9650edbd85 (patch) | |
tree | 03684ad7956900a977d5aa70bfab238a562b4f2f /firefox | |
parent | 1ef53aab94e0fa86e4b495c933a44006e2e2505c (diff) | |
download | opt-ddc967dcbc30a4b4e71e71a0a154db9650edbd85.tar.gz opt-ddc967dcbc30a4b4e71e71a0a154db9650edbd85.tar.xz |
firefox: removed obsolete patch
Diffstat (limited to 'firefox')
-rw-r--r-- | firefox/bz722975.patch | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/firefox/bz722975.patch b/firefox/bz722975.patch deleted file mode 100644 index 9924f6168..000000000 --- a/firefox/bz722975.patch +++ /dev/null @@ -1,71 +0,0 @@ -# HG changeset patch -# User Connor Behan <connor.behan@gmail.com> -# Date 1370038985 -7200 -# Node ID 52b02042b27f75acbcb2bd4822bedb00ab680e67 -# Parent 08ed531fed70978385cf9253bbc8389b0abe76ca -Bug 722975: Unbreak builds using --with-system-cairo. r=bas - -diff --git a/gfx/thebes/gfxPlatform.cpp b/gfx/thebes/gfxPlatform.cpp ---- a/gfx/thebes/gfxPlatform.cpp -+++ b/gfx/thebes/gfxPlatform.cpp -@@ -548,23 +548,31 @@ struct SourceSurfaceUserData - BackendType mBackendType; - }; - - void SourceBufferDestroy(void *srcSurfUD) - { - delete static_cast<SourceSurfaceUserData*>(srcSurfUD); - } - -+#if MOZ_TREE_CAIRO - void SourceSnapshotDetached(cairo_surface_t *nullSurf) - { - gfxImageSurface* origSurf = - static_cast<gfxImageSurface*>(cairo_surface_get_user_data(nullSurf, &kSourceSurface)); - - origSurf->SetData(&kSourceSurface, NULL, NULL); - } -+#else -+void SourceSnapshotDetached(void *nullSurf) -+{ -+ gfxImageSurface* origSurf = static_cast<gfxImageSurface*>(nullSurf); -+ origSurf->SetData(&kSourceSurface, NULL, NULL); -+} -+#endif - - RefPtr<SourceSurface> - gfxPlatform::GetSourceSurfaceForSurface(DrawTarget *aTarget, gfxASurface *aSurface) - { - void *userData = aSurface->GetData(&kSourceSurface); - - if (userData) { - SourceSurfaceUserData *surf = static_cast<SourceSurfaceUserData*>(userData); -@@ -667,24 +675,28 @@ gfxPlatform::GetSourceSurfaceForSurface( - } - - srcBuffer = Factory::CreateWrappingDataSourceSurface(imgSurface->Data(), - imgSurface->Stride(), - size, format); - - } - -+#if MOZ_TREE_CAIRO - 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); -+#else -+ cairo_surface_set_mime_data(imgSurface->CairoSurface(), "mozilla/magic", (const unsigned char*) "data", 4, SourceSnapshotDetached, imgSurface.get()); -+#endif - } - - SourceSurfaceUserData *srcSurfUD = new SourceSurfaceUserData; - srcSurfUD->mBackendType = aTarget->GetType(); - srcSurfUD->mSrcSurface = srcBuffer; - aSurface->SetData(&kSourceSurface, srcSurfUD, SourceBufferDestroy); - - return srcBuffer; |