OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef HarfBuzzShaper_h | 31 #ifndef HarfBuzzShaper_h |
32 #define HarfBuzzShaper_h | 32 #define HarfBuzzShaper_h |
33 | 33 |
34 #include "core/platform/graphics/FloatPoint.h" | 34 #include "core/platform/graphics/FloatPoint.h" |
35 #include "core/platform/graphics/GlyphBuffer.h" | 35 #include "core/platform/graphics/GlyphBuffer.h" |
36 #include "core/platform/graphics/TextRun.h" | 36 #include "core/platform/graphics/TextRun.h" |
37 #include "hb.h" | 37 #include "hb.h" |
38 #include <wtf/HashSet.h> | 38 #include "wtf/HashSet.h" |
39 #include <wtf/OwnArrayPtr.h> | 39 #include "wtf/OwnArrayPtr.h" |
40 #include <wtf/OwnPtr.h> | 40 #include "wtf/OwnPtr.h" |
41 #include <wtf/PassOwnPtr.h> | 41 #include "wtf/PassOwnPtr.h" |
42 #include <wtf/unicode/CharacterNames.h> | 42 #include "wtf/unicode/CharacterNames.h" |
43 #include <wtf/Vector.h> | 43 #include "wtf/Vector.h" |
44 | 44 |
45 namespace WebCore { | 45 namespace WebCore { |
46 | 46 |
47 class Font; | 47 class Font; |
48 class SimpleFontData; | 48 class SimpleFontData; |
49 | 49 |
50 class HarfBuzzShaper { | 50 class HarfBuzzShaper { |
51 public: | 51 public: |
52 enum NormalizeMode { | 52 enum NormalizeMode { |
53 DoNotNormalizeMirrorChars, | 53 DoNotNormalizeMirrorChars, |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 | 146 |
147 int m_fromIndex; | 147 int m_fromIndex; |
148 int m_toIndex; | 148 int m_toIndex; |
149 | 149 |
150 float m_totalWidth; | 150 float m_totalWidth; |
151 }; | 151 }; |
152 | 152 |
153 } // namespace WebCore | 153 } // namespace WebCore |
154 | 154 |
155 #endif // HarfBuzzShaper_h | 155 #endif // HarfBuzzShaper_h |
OLD | NEW |