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

Side by Side Diff: third_party/harfbuzz-ng/src/hb-ot-layout-common-private.hh

Issue 1580513002: Roll HarfBuzz to 1.1.3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix Created 4 years, 11 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 © 2007,2008,2009 Red Hat, Inc. 2 * Copyright © 2007,2008,2009 Red Hat, Inc.
3 * Copyright © 2010,2012 Google, Inc. 3 * Copyright © 2010,2012 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 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 unsigned int new_offset_int = (unsigned int) orig_offset - 538 unsigned int new_offset_int = (unsigned int) orig_offset -
539 (((char *) this) - ((char *) closure->list_b ase)); 539 (((char *) this) - ((char *) closure->list_b ase));
540 540
541 OffsetTo<FeatureParams> new_offset; 541 OffsetTo<FeatureParams> new_offset;
542 /* Check that it did not overflow. */ 542 /* Check that it did not overflow. */
543 new_offset.set (new_offset_int); 543 new_offset.set (new_offset_int);
544 if (new_offset == new_offset_int && 544 if (new_offset == new_offset_int &&
545 c->try_set (&featureParams, new_offset) && 545 c->try_set (&featureParams, new_offset) &&
546 !featureParams.sanitize (c, this, closure ? closure->tag : HB_TAG_NONE )) 546 !featureParams.sanitize (c, this, closure ? closure->tag : HB_TAG_NONE ))
547 return_trace (false); 547 return_trace (false);
548
549 if (c->edit_count > 1)
550 c->edit_count--; /* This was a "legitimate" edit; don't contribute to er ror count. */
548 } 551 }
549 552
550 return_trace (true); 553 return_trace (true);
551 } 554 }
552 555
553 OffsetTo<FeatureParams> 556 OffsetTo<FeatureParams>
554 featureParams; /* Offset to Feature Parameters table (if one 557 featureParams; /* Offset to Feature Parameters table (if one
555 * has been defined for the feature), relative 558 * has been defined for the feature), relative
556 * to the beginning of the Feature Table; = Null 559 * to the beginning of the Feature Table; = Null
557 * if not required */ 560 * if not required */
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
1226 USHORT deltaValue[VAR]; /* Array of compressed data */ 1229 USHORT deltaValue[VAR]; /* Array of compressed data */
1227 public: 1230 public:
1228 DEFINE_SIZE_ARRAY (6, deltaValue); 1231 DEFINE_SIZE_ARRAY (6, deltaValue);
1229 }; 1232 };
1230 1233
1231 1234
1232 } /* namespace OT */ 1235 } /* namespace OT */
1233 1236
1234 1237
1235 #endif /* HB_OT_LAYOUT_COMMON_PRIVATE_HH */ 1238 #endif /* HB_OT_LAYOUT_COMMON_PRIVATE_HH */
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-ot-layout.cc ('k') | third_party/harfbuzz-ng/src/hb-ot-layout-gpos-table.hh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698