From bd047d3b7f04d551c0a26bc0ce9b9d61481e34e1 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 19 Feb 2015 10:47:18 +0300 Subject: [PATCH] [layout] Minor --- src/hb-ot-layout-gpos-table.hh | 6 ++++++ src/hb-ot-layout-gsub-table.hh | 6 ++++++ src/hb-ot-layout.cc | 4 ++-- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/hb-ot-layout-gpos-table.hh b/src/hb-ot-layout-gpos-table.hh index ee204ebe0..d88f7876e 100644 --- a/src/hb-ot-layout-gpos-table.hh +++ b/src/hb-ot-layout-gpos-table.hh @@ -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); diff --git a/src/hb-ot-layout-gsub-table.hh b/src/hb-ot-layout-gsub-table.hh index f657b090e..ebe4c9ec4 100644 --- a/src/hb-ot-layout-gsub-table.hh +++ b/src/hb-ot-layout-gsub-table.hh @@ -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); diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index 978d78e8c..1c248b614 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -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--;