[layout] Minor

This commit is contained in:
Behdad Esfahbod 2015-02-19 10:47:18 +03:00
parent b9d3f60520
commit bd047d3b7f
3 changed files with 14 additions and 2 deletions

View File

@ -1418,6 +1418,12 @@ struct PosLookup : Lookup
return false; 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 inline hb_collect_glyphs_context_t::return_t collect_glyphs (hb_collect_glyphs_context_t *c) const
{ {
TRACE_COLLECT_GLYPHS (this); TRACE_COLLECT_GLYPHS (this);

View File

@ -1117,6 +1117,12 @@ struct SubstLookup : Lookup
return lookup_type_is_reverse (type); 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 inline hb_closure_context_t::return_t closure (hb_closure_context_t *c) const
{ {
TRACE_CLOSURE (this); TRACE_CLOSURE (this);

View File

@ -855,7 +855,7 @@ apply_string (OT::hb_apply_context_t *c,
if (accel.may_have (buffer->cur().codepoint) && if (accel.may_have (buffer->cur().codepoint) &&
(buffer->cur().mask & c->lookup_mask) && (buffer->cur().mask & c->lookup_mask) &&
c->check_glyph_property (&c->buffer->cur(), c->lookup_props) && c->check_glyph_property (&c->buffer->cur(), c->lookup_props) &&
lookup.dispatch (c)) lookup.apply (c))
ret = true; ret = true;
else else
buffer->next_glyph (); buffer->next_glyph ();
@ -879,7 +879,7 @@ apply_string (OT::hb_apply_context_t *c,
if (accel.may_have (buffer->cur().codepoint) && if (accel.may_have (buffer->cur().codepoint) &&
(buffer->cur().mask & c->lookup_mask) && (buffer->cur().mask & c->lookup_mask) &&
c->check_glyph_property (&c->buffer->cur(), c->lookup_props) && c->check_glyph_property (&c->buffer->cur(), c->lookup_props) &&
lookup.dispatch (c)) lookup.apply (c))
ret = true; ret = true;
/* The reverse lookup doesn't "advance" cursor (for good reason). */ /* The reverse lookup doesn't "advance" cursor (for good reason). */
buffer->idx--; buffer->idx--;