Revert "[Tizen] [GPOS] Avoid O(n^2) behavior in mark-attachment"
authorANZ1217 <chihun.jeong@samsung.com>
Tue, 16 Jan 2024 10:15:55 +0000 (19:15 +0900)
committerANZ1217 <chihun.jeong@samsung.com>
Tue, 16 Jan 2024 10:15:55 +0000 (19:15 +0900)
This reverts commit 14f9852c0d6ae99c2881a28b4e5944a22c8587a7.

src/hb-ot-layout-gsubgpos.hh

index d9a068c..65de131 100644 (file)
@@ -641,9 +641,6 @@ struct hb_ot_apply_context_t :
   uint32_t random_state;
 
 
-  signed last_base = -1; // GPOS uses
-  unsigned last_base_until = 0; // GPOS uses
-
   hb_ot_apply_context_t (unsigned int table_index_,
                         hb_font_t *font_,
                         hb_buffer_t *buffer_) :
@@ -676,7 +673,7 @@ struct hb_ot_apply_context_t :
     iter_context.init (this, true);
   }
 
-  void set_lookup_mask (hb_mask_t mask) { lookup_mask = mask; last_base = -1; last_base_until = 0; init_iters (); }
+  void set_lookup_mask (hb_mask_t mask) { lookup_mask = mask; init_iters (); }
   void set_auto_zwj (bool auto_zwj_) { auto_zwj = auto_zwj_; init_iters (); }
   void set_auto_zwnj (bool auto_zwnj_) { auto_zwnj = auto_zwnj_; init_iters (); }
   void set_random (bool random_) { random = random_; }