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

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

Issue 475363002: Roll HarfBuzz to 0.9.35 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Windows build fix attempt Created 6 years, 4 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 © 2011,2012 Google, Inc. 2 * Copyright © 2011,2012 Google, Inc.
3 * 3 *
4 * This is part of HarfBuzz, a text shaping library. 4 * This is part of HarfBuzz, a text shaping library.
5 * 5 *
6 * Permission is hereby granted, without written agreement and without 6 * Permission is hereby granted, without written agreement and without
7 * license or royalty fees, to use, copy, modify, and distribute this 7 * license or royalty fees, to use, copy, modify, and distribute this
8 * software and its documentation for any purpose, provided that the 8 * software and its documentation for any purpose, provided that the
9 * above copyright notice and the following two paragraphs appear in 9 * above copyright notice and the following two paragraphs appear in
10 * all copies of this software. 10 * all copies of this software.
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 282
283 return a < b ? -1 : a == b ? 0 : +1; 283 return a < b ? -1 : a == b ? 0 : +1;
284 } 284 }
285 285
286 286
287 void 287 void
288 _hb_ot_shape_normalize (const hb_ot_shape_plan_t *plan, 288 _hb_ot_shape_normalize (const hb_ot_shape_plan_t *plan,
289 hb_buffer_t *buffer, 289 hb_buffer_t *buffer,
290 hb_font_t *font) 290 hb_font_t *font)
291 { 291 {
292 _hb_buffer_assert_unicode_vars (buffer);
293
292 hb_ot_shape_normalization_mode_t mode = plan->shaper->normalization_preference ; 294 hb_ot_shape_normalization_mode_t mode = plan->shaper->normalization_preference ;
293 const hb_ot_shape_normalize_context_t c = { 295 const hb_ot_shape_normalize_context_t c = {
294 plan, 296 plan,
295 buffer, 297 buffer,
296 font, 298 font,
297 buffer->unicode, 299 buffer->unicode,
298 plan->shaper->decompose ? plan->shaper->decompose : decompose_unicode, 300 plan->shaper->decompose ? plan->shaper->decompose : decompose_unicode,
299 plan->shaper->compose ? plan->shaper->compose : compose_unicode 301 plan->shaper->compose ? plan->shaper->compose : compose_unicode
300 }; 302 };
301 303
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 406
405 /* Blocked, or doesn't compose. */ 407 /* Blocked, or doesn't compose. */
406 buffer->next_glyph (); 408 buffer->next_glyph ();
407 409
408 if (_hb_glyph_info_get_modified_combining_class (&buffer->prev()) == 0) 410 if (_hb_glyph_info_get_modified_combining_class (&buffer->prev()) == 0)
409 starter = buffer->out_len - 1; 411 starter = buffer->out_len - 1;
410 } 412 }
411 buffer->swap_buffers (); 413 buffer->swap_buffers ();
412 414
413 } 415 }
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-ot-shape-fallback.cc ('k') | third_party/harfbuzz-ng/src/hb-private.hh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698