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

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

Issue 16053004: Update harfbuzz-ng to 0.9.17 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 inline bool sanitize (hb_sanitize_context_t *c) { 122 inline bool sanitize (hb_sanitize_context_t *c) {
123 TRACE_SANITIZE (this); 123 TRACE_SANITIZE (this);
124 return TRACE_RETURN (RecordArrayOf<Type>::sanitize (c, this)); 124 return TRACE_RETURN (RecordArrayOf<Type>::sanitize (c, this));
125 } 125 }
126 }; 126 };
127 127
128 128
129 struct RangeRecord 129 struct RangeRecord
130 { 130 {
131 inline int cmp (hb_codepoint_t g) const { 131 inline int cmp (hb_codepoint_t g) const {
132 hb_codepoint_t a = start, b = end; 132 return g < start ? -1 : g <= end ? 0 : +1 ;
133 return g < a ? -1 : g <= b ? 0 : +1 ;
134 } 133 }
135 134
136 inline bool sanitize (hb_sanitize_context_t *c) { 135 inline bool sanitize (hb_sanitize_context_t *c) {
137 TRACE_SANITIZE (this); 136 TRACE_SANITIZE (this);
138 return TRACE_RETURN (c->check_struct (this)); 137 return TRACE_RETURN (c->check_struct (this));
139 } 138 }
140 139
141 inline bool intersects (const hb_set_t *glyphs) const { 140 inline bool intersects (const hb_set_t *glyphs) const {
142 return glyphs->intersects (start, end); 141 return glyphs->intersects (start, end);
143 } 142 }
(...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after
1133 USHORT deltaValue[VAR]; /* Array of compressed data */ 1132 USHORT deltaValue[VAR]; /* Array of compressed data */
1134 public: 1133 public:
1135 DEFINE_SIZE_ARRAY (6, deltaValue); 1134 DEFINE_SIZE_ARRAY (6, deltaValue);
1136 }; 1135 };
1137 1136
1138 1137
1139 } /* namespace OT */ 1138 } /* namespace OT */
1140 1139
1141 1140
1142 #endif /* HB_OT_LAYOUT_COMMON_PRIVATE_HH */ 1141 #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