[layout] Minor
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 19 Feb 2015 07:47:18 +0000 (10:47 +0300)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 25 Feb 2015 23:43:31 +0000 (15:43 -0800)
src/hb-ot-layout-gpos-table.hh
src/hb-ot-layout-gsub-table.hh
src/hb-ot-layout.cc

index ee204eb..d88f787 100644 (file)
@@ -1418,6 +1418,12 @@ struct PosLookup : Lookup
     return false;
   }
 
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    return TRACE_RETURN (dispatch (c));
+  }
+
   inline hb_collect_glyphs_context_t::return_t collect_glyphs (hb_collect_glyphs_context_t *c) const
   {
     TRACE_COLLECT_GLYPHS (this);
index f657b09..ebe4c9e 100644 (file)
@@ -1117,6 +1117,12 @@ struct SubstLookup : Lookup
     return lookup_type_is_reverse (type);
   }
 
+  inline bool apply (hb_apply_context_t *c) const
+  {
+    TRACE_APPLY (this);
+    return TRACE_RETURN (dispatch (c));
+  }
+
   inline hb_closure_context_t::return_t closure (hb_closure_context_t *c) const
   {
     TRACE_CLOSURE (this);
index 978d78e..1c248b6 100644 (file)
@@ -855,7 +855,7 @@ apply_string (OT::hb_apply_context_t *c,
       if (accel.may_have (buffer->cur().codepoint) &&
          (buffer->cur().mask & c->lookup_mask) &&
          c->check_glyph_property (&c->buffer->cur(), c->lookup_props) &&
-         lookup.dispatch (c))
+         lookup.apply (c))
        ret = true;
       else
        buffer->next_glyph ();
@@ -879,7 +879,7 @@ apply_string (OT::hb_apply_context_t *c,
       if (accel.may_have (buffer->cur().codepoint) &&
          (buffer->cur().mask & c->lookup_mask) &&
          c->check_glyph_property (&c->buffer->cur(), c->lookup_props) &&
-         lookup.dispatch (c))
+         lookup.apply (c))
        ret = true;
       /* The reverse lookup doesn't "advance" cursor (for good reason). */
       buffer->idx--;