Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Side by Side Diff: third_party/harfbuzz-ng/src/hb-ot-map.cc

Issue 1874153002: Roll HarfBuzz to 1.2.6 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright © 2009,2010 Red Hat, Inc. 2 * Copyright © 2009,2010 Red Hat, Inc.
3 * Copyright © 2010,2011,2013 Google, Inc. 3 * Copyright © 2010,2011,2013 Google, Inc.
4 * 4 *
5 * This is part of HarfBuzz, a text shaping library. 5 * This is part of HarfBuzz, a text shaping library.
6 * 6 *
7 * Permission is hereby granted, without written agreement and without 7 * Permission is hereby granted, without written agreement and without
8 * license or royalty fees, to use, copy, modify, and distribute this 8 * license or royalty fees, to use, copy, modify, and distribute this
9 * software and its documentation for any purpose, provided that the 9 * software and its documentation for any purpose, provided that the
10 * above copyright notice and the following two paragraphs appear in 10 * above copyright notice and the following two paragraphs appear in
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 if (!info->max_value || next_bit + bits_needed > 8 * sizeof (hb_mask_t)) 198 if (!info->max_value || next_bit + bits_needed > 8 * sizeof (hb_mask_t))
199 continue; /* Feature disabled, or not enough bits. */ 199 continue; /* Feature disabled, or not enough bits. */
200 200
201 201
202 hb_bool_t found = false; 202 hb_bool_t found = false;
203 unsigned int feature_index[2]; 203 unsigned int feature_index[2];
204 for (unsigned int table_index = 0; table_index < 2; table_index++) 204 for (unsigned int table_index = 0; table_index < 2; table_index++)
205 { 205 {
206 if (required_feature_tag[table_index] == info->tag) 206 if (required_feature_tag[table_index] == info->tag)
207 {
208 required_feature_stage[table_index] = info->stage[table_index]; 207 required_feature_stage[table_index] = info->stage[table_index];
209 » found = true; 208
210 » continue;
211 }
212 found |= hb_ot_layout_language_find_feature (face, 209 found |= hb_ot_layout_language_find_feature (face,
213 table_tags[table_index], 210 table_tags[table_index],
214 script_index[table_index], 211 script_index[table_index],
215 language_index[table_index], 212 language_index[table_index],
216 info->tag, 213 info->tag,
217 &feature_index[table_index]); 214 &feature_index[table_index]);
218 } 215 }
219 if (!found && (info->flags & F_GLOBAL_SEARCH)) 216 if (!found && (info->flags & F_GLOBAL_SEARCH))
220 { 217 {
221 for (unsigned int table_index = 0; table_index < 2; table_index++) 218 for (unsigned int table_index = 0; table_index < 2; table_index++)
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 if (likely (stage_map)) { 303 if (likely (stage_map)) {
307 stage_map->last_lookup = last_num_lookups; 304 stage_map->last_lookup = last_num_lookups;
308 stage_map->pause_func = stages[table_index][stage_index].pause_func; 305 stage_map->pause_func = stages[table_index][stage_index].pause_func;
309 } 306 }
310 307
311 stage_index++; 308 stage_index++;
312 } 309 }
313 } 310 }
314 } 311 }
315 } 312 }
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-ot-layout-gsub-table.hh ('k') | third_party/harfbuzz-ng/src/hb-ot-shape.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698