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

Side by Side Diff: third_party/harfbuzz-ng/src/hb-open-type-private.hh

Issue 1878053003: Cheery pick Fix FixedVersion::to_int() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
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
« no previous file with comments | « third_party/harfbuzz-ng/README.chromium ('k') | no next file » | 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 © 2007,2008,2009,2010 Red Hat, Inc. 2 * Copyright © 2007,2008,2009,2010 Red Hat, Inc.
3 * Copyright © 2012 Google, Inc. 3 * Copyright © 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 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 }; 735 };
736 736
737 737
738 /* 738 /*
739 * Version Numbers 739 * Version Numbers
740 */ 740 */
741 741
742 template <typename FixedType=USHORT> 742 template <typename FixedType=USHORT>
743 struct FixedVersion 743 struct FixedVersion
744 { 744 {
745 inline uint32_t to_int (void) const { return (major << sizeof(FixedType)) + mi nor; } 745 inline uint32_t to_int (void) const { return (major << (sizeof(FixedType) * 8) ) + minor; }
746 746
747 inline bool sanitize (hb_sanitize_context_t *c) const 747 inline bool sanitize (hb_sanitize_context_t *c) const
748 { 748 {
749 TRACE_SANITIZE (this); 749 TRACE_SANITIZE (this);
750 return_trace (c->check_struct (this)); 750 return_trace (c->check_struct (this));
751 } 751 }
752 752
753 FixedType major; 753 FixedType major;
754 FixedType minor; 754 FixedType minor;
755 public: 755 public:
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 } 1035 }
1036 return -1; 1036 return -1;
1037 } 1037 }
1038 }; 1038 };
1039 1039
1040 1040
1041 } /* namespace OT */ 1041 } /* namespace OT */
1042 1042
1043 1043
1044 #endif /* HB_OPEN_TYPE_PRIVATE_HH */ 1044 #endif /* HB_OPEN_TYPE_PRIVATE_HH */
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/README.chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698