summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2018-11-25 16:38:36 -0500
committerBehdad Esfahbod <behdad@behdad.org>2018-11-25 16:38:36 -0500
commit4151c2848d8df75b6d0a4f5d79bee843158aa4a4 (patch)
tree7fe8ae2cd41e74fdb2a1259a473a2bad3cb6ee8e /src
parent4f21703f225b6977196ef180e8d7300ea86d2cc3 (diff)
[GDEF] Move more code
Diffstat (limited to 'src')
-rw-r--r--src/hb-ot-layout-gdef-table.hh10
-rw-r--r--src/hb-ot-layout.cc11
2 files changed, 9 insertions, 12 deletions
diff --git a/src/hb-ot-layout-gdef-table.hh b/src/hb-ot-layout-gdef-table.hh
index a7ba9511..a0ae27e7 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<GDEF> (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 bb87b5e5..6d6834fc 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<GDEF> (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)