12018-11-18 Zan Dobersek <zdobersek@igalia.com>
2
3 HarfBuzzFace::CacheEntry should use 32-bit values in its HashMap
4 https://bugs.webkit.org/show_bug.cgi?id=191825
5
6 Reviewed by NOBODY (OOPS!).
7
8 The HashMap-based glyph cache contained in HarfBuzzFace::CacheEntry
9 objects is used to map given Unicode codepoints to corresponding
10 glyph indices (which occurs in the harfBuzzGetGlyph() function that's
11 invoked by HarfBuzz).
12
13 The 16-bit unsigned integer as the map's value type is not enough here
14 when the glyph index mapping is done through Freetype -- its API returns
15 32-bit glyph indices, and Cairo assigns this value to the 64-bit
16 unsigned index variable in the cairo_glyph_t struct. The value type is
17 thus bumped to 32 bits to match the unsigned type size of the index's
18 origin.
19
20 * platform/graphics/harfbuzz/HarfBuzzFace.h:
21 * platform/graphics/harfbuzz/HarfBuzzFaceCairo.cpp:
22