gfx/cairo/cairo-qt-compile.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.

     1 # HG changeset patch
     2 # Parent 2563fa2763b0ea83394e785340afa4c564ceab57
     3 diff -r 2563fa2763b0 -r 9ab15e95a354 gfx/cairo/cairo/src/cairo-qt-surface.cpp
     4 --- a/gfx/cairo/cairo/src/cairo-qt-surface.cpp	Thu Apr 29 06:55:11 2010 +0300
     5 +++ b/gfx/cairo/cairo/src/cairo-qt-surface.cpp	Thu Apr 29 06:55:51 2010 +0300
     6 @@ -204,6 +204,7 @@
     7      case CAIRO_OPERATOR_HSL_LUMINOSITY:
     8  	ASSERT_NOT_REACHED;
     9      }
    10 +    return QPainter::CompositionMode_Source;
    11  }
    13  static bool
    14 @@ -668,7 +669,6 @@
    15  static cairo_status_t
    16  _cairo_qt_surface_clone_similar (void *abstract_surface,
    17  				 cairo_surface_t *src,
    18 -				 cairo_content_t  content,
    19  				 int              src_x,
    20  				 int              src_y,
    21  				 int              width,

mercurial