Revert "[layout] Limit how far we skip when looking back"

This reverts commit 85be877925.
This commit is contained in:
Behdad Esfahbod 2023-02-06 12:38:17 -07:00
parent b29fbd16fa
commit 661050b465
1 changed files with 0 additions and 7 deletions

View File

@ -597,13 +597,6 @@ struct hb_ot_apply_context_t :
unsigned stop = num_items - 1;
if (c->buffer->flags & HB_BUFFER_FLAG_PRODUCE_UNSAFE_TO_CONCAT)
stop = 1 - 1;
/* When looking back, limit how far we search; this function is mostly
* used for looking back for base glyphs when attaching marks. If we
* don't limit, we can get O(n^2) behavior where n is the number of
* consecutive marks. */
stop = (unsigned) hb_max ((int) stop, (int) idx - HB_MAX_CONTEXT_LENGTH);
while (idx > stop)
{
idx--;