[GDEF] Move more code
authorBehdad Esfahbod <behdad@behdad.org>
Sun, 25 Nov 2018 21:38:36 +0000 (16:38 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Sun, 25 Nov 2018 21:38:36 +0000 (16:38 -0500)
src/hb-ot-layout-gdef-table.hh
src/hb-ot-layout.cc

index a7ba951..a0ae27e 100644 (file)
@@ -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)
     {
index bb87b5e..6d6834f 100644 (file)
@@ -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)