Tue, 06 Jan 2015 21:39:09 +0100
Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | commit df2b22c8c6677d531194579c82a55e855adff706 |
michael@0 | 2 | Author: Jeff Muizelaar <jmuizelaar@mozilla.com> |
michael@0 | 3 | Date: Thu Apr 8 15:43:41 2010 -0400 |
michael@0 | 4 | |
michael@0 | 5 | Propagate is_clear flag to quartz_image_surface |
michael@0 | 6 | |
michael@0 | 7 | diff --git a/src/cairo-quartz-image-surface.c b/src/cairo-quartz-image-surface.c |
michael@0 | 8 | index 5a624eb..b8809d5 100644 |
michael@0 | 9 | --- a/src/cairo-quartz-image-surface.c |
michael@0 | 10 | +++ b/src/cairo-quartz-image-surface.c |
michael@0 | 11 | @@ -146,6 +146,8 @@ _cairo_quartz_image_surface_flush (void *asurface) |
michael@0 | 12 | surface->image = newImage; |
michael@0 | 13 | CGImageRelease (oldImage); |
michael@0 | 14 | |
michael@0 | 15 | + surface->base.is_clear = surface->imageSurface->base.is_clear; |
michael@0 | 16 | + |
michael@0 | 17 | return CAIRO_STATUS_SUCCESS; |
michael@0 | 18 | } |
michael@0 | 19 | |
michael@0 | 20 | @@ -267,6 +269,8 @@ cairo_quartz_image_surface_create (cairo_surface_t *surface) |
michael@0 | 21 | qisurf->image = image; |
michael@0 | 22 | qisurf->imageSurface = image_surface; |
michael@0 | 23 | |
michael@0 | 24 | + qisurf->base.is_clear = image_surface->base.is_clear; |
michael@0 | 25 | + |
michael@0 | 26 | return &qisurf->base; |
michael@0 | 27 | } |
michael@0 | 28 |