gfx/skia/patches/0025-Bug-896049-Add-default-Value-SK_OVERRIDE.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 diff --git a/gfx/skia/include/core/SkPostConfig.h b/gfx/skia/include/core/SkPostConfig.h
     2 --- a/gfx/skia/include/core/SkPostConfig.h
     3 +++ b/gfx/skia/include/core/SkPostConfig.h
     4 @@ -325,19 +325,19 @@
     5              // Some documentation suggests we should be using __attribute__((override)),
     6              // but it doesn't work.
     7              #define SK_OVERRIDE override
     8          #elif defined(__has_extension)
     9              #if __has_extension(cxx_override_control)
    10                  #define SK_OVERRIDE override
    11              #endif
    12          #endif
    13 -    #else
    14 -        // Linux GCC ignores "__attribute__((override))" and rejects "override".
    15 -        #define SK_OVERRIDE
    16 +    #endif
    17 +    #ifndef SK_OVERRIDE
    18 +	#define SK_OVERRIDE
    19      #endif
    20  #endif
    22  //////////////////////////////////////////////////////////////////////
    24  #ifndef SK_PRINTF_LIKE
    25  #if defined(__clang__) || defined(__GNUC__)
    26  #define SK_PRINTF_LIKE(A, B) __attribute__((format(printf, (A), (B))))

mercurial