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.
1 diff --git a/gfx/cairo/libpixman/src/pixman-compiler.h b/gfx/cairo/libpixman/src/pixman-compiler.h
2 --- a/gfx/cairo/libpixman/src/pixman-compiler.h
3 +++ b/gfx/cairo/libpixman/src/pixman-compiler.h
4 @@ -59,26 +59,33 @@
5 # ifndef force_inline
6 # define force_inline inline
7 # endif
8 # ifndef noinline
9 # define noinline
10 # endif
11 #endif
13 +/* In libxul builds we don't ever want to export pixman symbols */
14 +#if 1
15 +# define PIXMAN_EXPORT cairo_public
16 +#else
17 +
18 /* GCC visibility */
19 #if defined(__GNUC__) && __GNUC__ >= 4 && !defined(_WIN32)
20 # define PIXMAN_EXPORT __attribute__ ((visibility("default")))
21 /* Sun Studio 8 visibility */
22 #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
23 # define PIXMAN_EXPORT __global
24 #else
25 # define PIXMAN_EXPORT
26 #endif
28 +#endif
29 +
30 /* TLS */
31 #if defined(PIXMAN_NO_TLS)
33 # define PIXMAN_DEFINE_THREAD_LOCAL(type, name) \
34 static type name
35 # define PIXMAN_GET_THREAD_LOCAL(name) \
36 (&name)