gfx/skia/patches/archive/0014-Bug-765038-Fix-clang-build.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.

michael@0 1 # HG changeset patch
michael@0 2 # Parent 9ded7a9f94a863dfa1f3227d3013367f51b8b522
michael@0 3 # User Nicholas Cameron <ncameron@mozilla.com>
michael@0 4 Bug 765038; fix a Clang compilation bug in Skia; r=jwatt
michael@0 5
michael@0 6 diff --git a/gfx/skia/src/sfnt/SkOTTable_head.h b/gfx/skia/src/sfnt/SkOTTable_head.h
michael@0 7 --- a/gfx/skia/src/sfnt/SkOTTable_head.h
michael@0 8 +++ b/gfx/skia/src/sfnt/SkOTTable_head.h
michael@0 9 @@ -109,18 +109,18 @@ struct SkOTTableHead {
michael@0 10 } raw;
michael@0 11 } macStyle;
michael@0 12 SK_OT_USHORT lowestRecPPEM;
michael@0 13 struct FontDirectionHint {
michael@0 14 SK_TYPED_ENUM(Value, SK_OT_SHORT,
michael@0 15 ((FullyMixedDirectionalGlyphs, SkTEndian_SwapBE16(0)))
michael@0 16 ((OnlyStronglyLTR, SkTEndian_SwapBE16(1)))
michael@0 17 ((StronglyLTR, SkTEndian_SwapBE16(2)))
michael@0 18 - ((OnlyStronglyRTL, static_cast<SK_OT_SHORT>(SkTEndian_SwapBE16(-1))))
michael@0 19 - ((StronglyRTL, static_cast<SK_OT_SHORT>(SkTEndian_SwapBE16(-2))))
michael@0 20 + ((OnlyStronglyRTL, static_cast<SK_OT_SHORT>(SkTEndian_SwapBE16(static_cast<SK_OT_USHORT>(-1)))))
michael@0 21 + ((StronglyRTL, static_cast<SK_OT_SHORT>(SkTEndian_SwapBE16(static_cast<SK_OT_USHORT>(-2)))))
michael@0 22 SK_SEQ_END,
michael@0 23 (value)SK_SEQ_END)
michael@0 24 } fontDirectionHint;
michael@0 25 struct IndexToLocFormat {
michael@0 26 SK_TYPED_ENUM(Value, SK_OT_SHORT,
michael@0 27 ((ShortOffsets, SkTEndian_SwapBE16(0)))
michael@0 28 ((LongOffsets, SkTEndian_SwapBE16(1)))
michael@0 29 SK_SEQ_END,

mercurial