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

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

Issue 988693005: Chromium roll (https://codereview.chromium.org/976353002) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fixed bad android build patch Created 5 years, 9 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
« no previous file with comments | « third_party/harfbuzz-ng/BUILD.gn ('k') | third_party/libxml/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright © 1998-2004 David Turner and Werner Lemberg 2 * Copyright © 1998-2004 David Turner and Werner Lemberg
3 * Copyright © 2004,2007,2009,2010 Red Hat, Inc. 3 * Copyright © 2004,2007,2009,2010 Red Hat, Inc.
4 * Copyright © 2011,2012 Google, Inc. 4 * Copyright © 2011,2012 Google, Inc.
5 * 5 *
6 * This is part of HarfBuzz, a text shaping library. 6 * This is part of HarfBuzz, a text shaping library.
7 * 7 *
8 * Permission is hereby granted, without written agreement and without 8 * Permission is hereby granted, without written agreement and without
9 * license or royalty fees, to use, copy, modify, and distribute this 9 * license or royalty fees, to use, copy, modify, and distribute this
10 * software and its documentation for any purpose, provided that the 10 * software and its documentation for any purpose, provided that the
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 return; 447 return;
448 448
449 for (i = start, j = end - 1; i < j; i++, j--) { 449 for (i = start, j = end - 1; i < j; i++, j--) {
450 hb_glyph_info_t t; 450 hb_glyph_info_t t;
451 451
452 t = info[i]; 452 t = info[i];
453 info[i] = info[j]; 453 info[i] = info[j];
454 info[j] = t; 454 info[j] = t;
455 } 455 }
456 456
457 if (pos) { 457 if (have_positions) {
458 for (i = start, j = end - 1; i < j; i++, j--) { 458 for (i = start, j = end - 1; i < j; i++, j--) {
459 hb_glyph_position_t t; 459 hb_glyph_position_t t;
460 460
461 t = pos[i]; 461 t = pos[i];
462 pos[i] = pos[j]; 462 pos[i] = pos[j];
463 pos[j] = t; 463 pos[j] = t;
464 } 464 }
465 } 465 }
466 } 466 }
467 467
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after
1585 1585
1586 unsigned int start = 0; 1586 unsigned int start = 0;
1587 unsigned int end; 1587 unsigned int end;
1588 for (end = start + 1; end < count; end++) 1588 for (end = start + 1; end < count; end++)
1589 if (info[start].cluster != info[end].cluster) { 1589 if (info[start].cluster != info[end].cluster) {
1590 normalize_glyphs_cluster (buffer, start, end, backward); 1590 normalize_glyphs_cluster (buffer, start, end, backward);
1591 start = end; 1591 start = end;
1592 } 1592 }
1593 normalize_glyphs_cluster (buffer, start, end, backward); 1593 normalize_glyphs_cluster (buffer, start, end, backward);
1594 } 1594 }
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/BUILD.gn ('k') | third_party/libxml/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698