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

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

Issue 1476763003: Roll HarfBuzz to 1.1.1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: windows line height rebaseline Created 5 years 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 16 matching lines...) Expand all
27 */ 27 */
28 28
29 #ifndef HB_OT_LAYOUT_COMMON_PRIVATE_HH 29 #ifndef HB_OT_LAYOUT_COMMON_PRIVATE_HH
30 #define HB_OT_LAYOUT_COMMON_PRIVATE_HH 30 #define HB_OT_LAYOUT_COMMON_PRIVATE_HH
31 31
32 #include "hb-ot-layout-private.hh" 32 #include "hb-ot-layout-private.hh"
33 #include "hb-open-type-private.hh" 33 #include "hb-open-type-private.hh"
34 #include "hb-set-private.hh" 34 #include "hb-set-private.hh"
35 35
36 36
37 #ifndef HB_MAX_NESTING_LEVEL
38 #define HB_MAX_NESTING_LEVEL 6
39 #endif
40 #ifndef HB_MAX_CONTEXT_LENGTH
41 #define HB_MAX_CONTEXT_LENGTH 64
42 #endif
43
44
37 namespace OT { 45 namespace OT {
38 46
39 47
40 #define TRACE_DISPATCH(this, format) \ 48 #define TRACE_DISPATCH(this, format) \
41 hb_auto_trace_t<context_t::max_debug_depth, typename context_t::return_t > trace \ 49 hb_auto_trace_t<context_t::max_debug_depth, typename context_t::return_t > trace \
42 (&c->debug_depth, c->get_name (), this, HB_FUNC, \ 50 (&c->debug_depth, c->get_name (), this, HB_FUNC, \
43 "format %d", (int) format); 51 "format %d", (int) format);
44 52
45 53
46 #define NOT_COVERED ((unsigned int) -1) 54 #define NOT_COVERED ((unsigned int) -1)
47 #define MAX_NESTING_LEVEL 6
48 #define MAX_CONTEXT_LENGTH 64
49 55
50 56
51 57
52 /* 58 /*
53 * 59 *
54 * OpenType Layout Common Table Formats 60 * OpenType Layout Common Table Formats
55 * 61 *
56 */ 62 */
57 63
58 64
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 IgnoreMarks = 0x0008u, 572 IgnoreMarks = 0x0008u,
567 IgnoreFlags = 0x000Eu, 573 IgnoreFlags = 0x000Eu,
568 UseMarkFilteringSet = 0x0010u, 574 UseMarkFilteringSet = 0x0010u,
569 Reserved = 0x00E0u, 575 Reserved = 0x00E0u,
570 MarkAttachmentType = 0xFF00u 576 MarkAttachmentType = 0xFF00u
571 }; 577 };
572 public: 578 public:
573 DEFINE_SIZE_STATIC (2); 579 DEFINE_SIZE_STATIC (2);
574 }; 580 };
575 581
582 } /* namespace OT */
583 /* This has to be outside the namespace. */
584 HB_MARK_AS_FLAG_T (OT::LookupFlag::Flags);
585 namespace OT {
586
576 struct Lookup 587 struct Lookup
577 { 588 {
578 inline unsigned int get_subtable_count (void) const { return subTable.len; } 589 inline unsigned int get_subtable_count (void) const { return subTable.len; }
579 590
580 template <typename SubTableType> 591 template <typename SubTableType>
581 inline const SubTableType& get_subtable (unsigned int i) const 592 inline const SubTableType& get_subtable (unsigned int i) const
582 { return this+CastR<OffsetArrayOf<SubTableType> > (subTable)[i]; } 593 { return this+CastR<OffsetArrayOf<SubTableType> > (subTable)[i]; }
583 594
584 template <typename SubTableType> 595 template <typename SubTableType>
585 inline const OffsetArrayOf<SubTableType>& get_subtables (void) const 596 inline const OffsetArrayOf<SubTableType>& get_subtables (void) const
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 USHORT deltaValue[VAR]; /* Array of compressed data */ 1226 USHORT deltaValue[VAR]; /* Array of compressed data */
1216 public: 1227 public:
1217 DEFINE_SIZE_ARRAY (6, deltaValue); 1228 DEFINE_SIZE_ARRAY (6, deltaValue);
1218 }; 1229 };
1219 1230
1220 1231
1221 } /* namespace OT */ 1232 } /* namespace OT */
1222 1233
1223 1234
1224 #endif /* HB_OT_LAYOUT_COMMON_PRIVATE_HH */ 1235 #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