Bug 1201518 - Remove the (unused) HBGetEastAsianWidth callback from gfxHarfBuzzShaper. r=jdaggett
authorJonathan Kew <jkew@mozilla.com>
Fri, 04 Sep 2015 12:59:19 +0100
changeset 260838 96fb066503f5af77969cde1e6afb286a4eaa6da2
parent 260837 06c35ae9bc22874fdbc811aed0181063502efeca
child 260839 022810f9a65a812bdf49e62e5ba1fe6edb512458
push id64612
push userjkew@mozilla.com
push dateFri, 04 Sep 2015 12:00:05 +0000
treeherdermozilla-inbound@96fb066503f5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdaggett
bugs1201518
milestone43.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1201518 - Remove the (unused) HBGetEastAsianWidth callback from gfxHarfBuzzShaper. r=jdaggett
gfx/thebes/gfxHarfBuzzShaper.cpp
--- a/gfx/thebes/gfxHarfBuzzShaper.cpp
+++ b/gfx/thebes/gfxHarfBuzzShaper.cpp
@@ -1019,23 +1019,16 @@ HBGetScript(hb_unicode_funcs_t *ufuncs, 
 
 static hb_unicode_combining_class_t
 HBGetCombiningClass(hb_unicode_funcs_t *ufuncs, hb_codepoint_t aCh,
                     void *user_data)
 {
     return hb_unicode_combining_class_t(GetCombiningClass(aCh));
 }
 
-static unsigned int
-HBGetEastAsianWidth(hb_unicode_funcs_t *ufuncs, hb_codepoint_t aCh,
-                    void *user_data)
-{
-    return GetEastAsianWidth(aCh);
-}
-
 // Hebrew presentation forms with dagesh, for characters 0x05D0..0x05EA;
 // note that some letters do not have a dagesh presForm encoded
 static const char16_t sDageshForms[0x05EA - 0x05D0 + 1] = {
     0xFB30, // ALEF
     0xFB31, // BET
     0xFB32, // GIMEL
     0xFB33, // DALET
     0xFB34, // HE
@@ -1299,19 +1292,16 @@ gfxHarfBuzzShaper::Initialize()
         hb_unicode_funcs_set_script_func(sHBUnicodeFuncs, HBGetScript,
                                          nullptr, nullptr);
         hb_unicode_funcs_set_general_category_func(sHBUnicodeFuncs,
                                                    HBGetGeneralCategory,
                                                    nullptr, nullptr);
         hb_unicode_funcs_set_combining_class_func(sHBUnicodeFuncs,
                                                   HBGetCombiningClass,
                                                   nullptr, nullptr);
-        hb_unicode_funcs_set_eastasian_width_func(sHBUnicodeFuncs,
-                                                  HBGetEastAsianWidth,
-                                                  nullptr, nullptr);
         hb_unicode_funcs_set_compose_func(sHBUnicodeFuncs,
                                           HBUnicodeCompose,
                                           nullptr, nullptr);
         hb_unicode_funcs_set_decompose_func(sHBUnicodeFuncs,
                                             HBUnicodeDecompose,
                                             nullptr, nullptr);
 
 #if MOZ_HB_SHAPER_USE_ICU_NORMALIZATION