From: Behdad Esfahbod Date: Sun, 25 Nov 2018 21:38:36 +0000 (-0500) Subject: [GDEF] Move more code X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4151c2848d8df75b6d0a4f5d79bee843158aa4a4;p=platform%2Fupstream%2FlibHarfBuzzSharp.git [GDEF] Move more code --- diff --git a/src/hb-ot-layout-gdef-table.hh b/src/hb-ot-layout-gdef-table.hh index a7ba951..a0ae27e 100644 --- a/src/hb-ot-layout-gdef-table.hh +++ b/src/hb-ot-layout-gdef-table.hh @@ -413,7 +413,15 @@ struct GDEF struct accelerator_t { - HB_INTERNAL void init (hb_face_t *face); + inline void init (hb_face_t *face) + { + this->table = hb_sanitize_context_t().reference_table (face); + if (unlikely (this->table->is_blacklisted (this->table.get_blob (), face))) + { + hb_blob_destroy (this->table.get_blob ()); + this->table = hb_blob_get_empty (); + } + } inline void fini (void) { diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index bb87b5e..6d6834f 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -198,17 +198,6 @@ OT::GDEF::is_blacklisted (hb_blob_t *blob, return false; } -void -OT::GDEF::accelerator_t::init (hb_face_t *face) -{ - this->table = hb_sanitize_context_t().reference_table (face); - if (unlikely (this->table->is_blacklisted (this->table.get_blob (), face))) - { - hb_blob_destroy (this->table.get_blob ()); - this->table = hb_blob_get_empty (); - } -} - static void _hb_ot_layout_set_glyph_props (hb_font_t *font, hb_buffer_t *buffer)