gfx/cairo/quartz-is-clear.patch

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 commit df2b22c8c6677d531194579c82a55e855adff706
     2 Author: Jeff Muizelaar <jmuizelaar@mozilla.com>
     3 Date:   Thu Apr 8 15:43:41 2010 -0400
     5     Propagate is_clear flag to quartz_image_surface
     7 diff --git a/src/cairo-quartz-image-surface.c b/src/cairo-quartz-image-surface.c
     8 index 5a624eb..b8809d5 100644
     9 --- a/src/cairo-quartz-image-surface.c
    10 +++ b/src/cairo-quartz-image-surface.c
    11 @@ -146,6 +146,8 @@ _cairo_quartz_image_surface_flush (void *asurface)
    12      surface->image = newImage;
    13      CGImageRelease (oldImage);
    15 +    surface->base.is_clear = surface->imageSurface->base.is_clear;
    16 +
    17      return CAIRO_STATUS_SUCCESS;
    18  }
    20 @@ -267,6 +269,8 @@ cairo_quartz_image_surface_create (cairo_surface_t *surface)
    21      qisurf->image = image;
    22      qisurf->imageSurface = image_surface;
    24 +    qisurf->base.is_clear = image_surface->base.is_clear;
    25 +
    26      return &qisurf->base;
    27  }

mercurial