OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 19 matching lines...) Expand all Loading... |
30 #define GlyphPageTreeNode_h | 30 #define GlyphPageTreeNode_h |
31 | 31 |
32 #include "platform/fonts/GlyphPage.h" | 32 #include "platform/fonts/GlyphPage.h" |
33 #include <string.h> | 33 #include <string.h> |
34 #include "wtf/HashMap.h" | 34 #include "wtf/HashMap.h" |
35 #include "wtf/OwnPtr.h" | 35 #include "wtf/OwnPtr.h" |
36 #include "wtf/PassRefPtr.h" | 36 #include "wtf/PassRefPtr.h" |
37 #include "wtf/RefCounted.h" | 37 #include "wtf/RefCounted.h" |
38 #include "wtf/unicode/Unicode.h" | 38 #include "wtf/unicode/Unicode.h" |
39 | 39 |
40 #ifndef NDEBUG | |
41 void PLATFORM_EXPORT showGlyphPageTrees(); | |
42 void PLATFORM_EXPORT showGlyphPageTree(unsigned pageNumber); | |
43 #endif | |
44 | |
45 namespace blink { | 40 namespace blink { |
46 | 41 |
47 class FontData; | 42 class FontData; |
48 class SimpleFontData; | 43 class SimpleFontData; |
49 | 44 |
50 // The glyph page tree is a data structure that maps (FontData, glyph page numbe
r) | 45 // The glyph page tree is a data structure that maps (FontData, glyph page numbe
r) |
51 // to a GlyphPage. Level 0 (the "root") is special. There is one root | 46 // to a GlyphPage. Level 0 (the "root") is special. There is one root |
52 // GlyphPageTreeNode for each glyph page number. The roots do not have a | 47 // GlyphPageTreeNode for each glyph page number. The roots do not have a |
53 // GlyphPage associated with them, and their initializePage() function is never | 48 // GlyphPage associated with them, and their initializePage() function is never |
54 // called to fill the glyphs. | 49 // called to fill the glyphs. |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 GlyphPageTreeNode* m_parent; | 119 GlyphPageTreeNode* m_parent; |
125 RefPtr<GlyphPage> m_page; | 120 RefPtr<GlyphPage> m_page; |
126 unsigned m_level : 31; | 121 unsigned m_level : 31; |
127 bool m_isSystemFallback : 1; | 122 bool m_isSystemFallback : 1; |
128 unsigned m_customFontCount; | 123 unsigned m_customFontCount; |
129 OwnPtr<GlyphPageTreeNode> m_systemFallbackChild; | 124 OwnPtr<GlyphPageTreeNode> m_systemFallbackChild; |
130 | 125 |
131 #if ENABLE(ASSERT) | 126 #if ENABLE(ASSERT) |
132 unsigned m_pageNumber; | 127 unsigned m_pageNumber; |
133 #endif | 128 #endif |
134 #ifndef NDEBUG | |
135 friend void ::showGlyphPageTrees(); | |
136 friend void ::showGlyphPageTree(unsigned pageNumber); | |
137 #endif | |
138 }; | 129 }; |
139 | 130 |
140 } // namespace blink | 131 } // namespace blink |
141 | 132 |
142 #endif // GlyphPageTreeNode_h | 133 #endif // GlyphPageTreeNode_h |
OLD | NEW |