[gsubgpos] Minor style improve
This commit is contained in:
parent
4ad686b9c0
commit
1a48278511
|
@ -77,9 +77,7 @@ struct hb_closure_context_t :
|
||||||
}
|
}
|
||||||
|
|
||||||
bool lookup_limit_exceeded ()
|
bool lookup_limit_exceeded ()
|
||||||
{
|
{ return lookup_count > HB_MAX_LOOKUP_INDICES; }
|
||||||
return lookup_count > HB_MAX_LOOKUP_INDICES;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool should_visit_lookup (unsigned int lookup_index)
|
bool should_visit_lookup (unsigned int lookup_index)
|
||||||
{
|
{
|
||||||
|
@ -165,9 +163,7 @@ struct hb_closure_lookups_context_t :
|
||||||
{ inactive_lookups->add (lookup_index); }
|
{ inactive_lookups->add (lookup_index); }
|
||||||
|
|
||||||
bool lookup_limit_exceeded ()
|
bool lookup_limit_exceeded ()
|
||||||
{
|
{ return lookup_count > HB_MAX_LOOKUP_INDICES; }
|
||||||
return lookup_count > HB_MAX_LOOKUP_INDICES;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool is_lookup_visited (unsigned lookup_index)
|
bool is_lookup_visited (unsigned lookup_index)
|
||||||
{
|
{
|
||||||
|
@ -2084,9 +2080,7 @@ struct ChainRule
|
||||||
void closure (hb_closure_context_t *c,
|
void closure (hb_closure_context_t *c,
|
||||||
ChainContextClosureLookupContext &lookup_context) const
|
ChainContextClosureLookupContext &lookup_context) const
|
||||||
{
|
{
|
||||||
if (c->lookup_limit_exceeded ()) {
|
if (c->lookup_limit_exceeded ()) return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const HeadlessArrayOf<HBUINT16> &input = StructAfter<HeadlessArrayOf<HBUINT16>> (backtrack);
|
const HeadlessArrayOf<HBUINT16> &input = StructAfter<HeadlessArrayOf<HBUINT16>> (backtrack);
|
||||||
const ArrayOf<HBUINT16> &lookahead = StructAfter<ArrayOf<HBUINT16>> (input);
|
const ArrayOf<HBUINT16> &lookahead = StructAfter<ArrayOf<HBUINT16>> (input);
|
||||||
|
@ -2101,9 +2095,7 @@ struct ChainRule
|
||||||
|
|
||||||
void closure_lookups (hb_closure_lookups_context_t *c) const
|
void closure_lookups (hb_closure_lookups_context_t *c) const
|
||||||
{
|
{
|
||||||
if (c->lookup_limit_exceeded ()) {
|
if (c->lookup_limit_exceeded ()) return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const HeadlessArrayOf<HBUINT16> &input = StructAfter<HeadlessArrayOf<HBUINT16>> (backtrack);
|
const HeadlessArrayOf<HBUINT16> &input = StructAfter<HeadlessArrayOf<HBUINT16>> (backtrack);
|
||||||
const ArrayOf<HBUINT16> &lookahead = StructAfter<ArrayOf<HBUINT16>> (input);
|
const ArrayOf<HBUINT16> &lookahead = StructAfter<ArrayOf<HBUINT16>> (input);
|
||||||
|
@ -2271,9 +2263,7 @@ struct ChainRuleSet
|
||||||
}
|
}
|
||||||
void closure (hb_closure_context_t *c, ChainContextClosureLookupContext &lookup_context) const
|
void closure (hb_closure_context_t *c, ChainContextClosureLookupContext &lookup_context) const
|
||||||
{
|
{
|
||||||
if (c->lookup_limit_exceeded ()) {
|
if (c->lookup_limit_exceeded ()) return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
return
|
||||||
+ hb_iter (rule)
|
+ hb_iter (rule)
|
||||||
|
@ -2284,9 +2274,7 @@ struct ChainRuleSet
|
||||||
|
|
||||||
void closure_lookups (hb_closure_lookups_context_t *c) const
|
void closure_lookups (hb_closure_lookups_context_t *c) const
|
||||||
{
|
{
|
||||||
if (c->lookup_limit_exceeded ()) {
|
if (c->lookup_limit_exceeded ()) return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
return
|
||||||
+ hb_iter (rule)
|
+ hb_iter (rule)
|
||||||
|
|
Loading…
Reference in New Issue