提交 bd047d3b 编写于 作者: B Behdad Esfahbod

[layout] Minor

上级 b9d3f605
......@@ -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);
......
......@@ -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);
......
......@@ -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--;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册