gfx/cairo/fix-ps-output.patch

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

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 # HG changeset patch
michael@0 2 # User Jeff Muizelaar <jmuizelaar@mozilla.com>
michael@0 3 # Date 1276629019 14400
michael@0 4 # Node ID b5eb246c152dedb895d3010eb7192f88cce51146
michael@0 5 # Parent 792cd3e8aa59b24c333f2c90f938beda361b3336
michael@0 6 cairo: PS: Add missing 'q' when resetting clip path
michael@0 7
michael@0 8 diff --git a/gfx/cairo/cairo/src/cairo-ps-surface.c b/gfx/cairo/cairo/src/cairo-ps-surface.c
michael@0 9 --- a/gfx/cairo/cairo/src/cairo-ps-surface.c
michael@0 10 +++ b/gfx/cairo/cairo/src/cairo-ps-surface.c
michael@0 11 @@ -3696,7 +3696,7 @@ _cairo_ps_surface_set_paginated_mode (vo
michael@0 12 if (surface->clipper.clip.path != NULL) {
michael@0 13 status = _cairo_pdf_operators_flush (&surface->pdf_operators);
michael@0 14
michael@0 15 - _cairo_output_stream_printf (surface->stream, "Q\n");
michael@0 16 + _cairo_output_stream_printf (surface->stream, "Q q\n");
michael@0 17 _cairo_surface_clipper_reset (&surface->clipper);
michael@0 18 }
michael@0 19 }

mercurial