gfx/skia/patches/archive/0014-Bug-765038-Fix-clang-build.patch

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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