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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 void initializeOverridePage(const FontData*, unsigned pageNumber); | 127 void initializeOverridePage(const FontData*, unsigned pageNumber); |
128 | 128 |
129 #ifndef NDEBUG | 129 #ifndef NDEBUG |
130 void showSubtree(); | 130 void showSubtree(); |
131 #endif | 131 #endif |
132 | 132 |
133 static HashMap<int, GlyphPageTreeNode*>* roots; | 133 static HashMap<int, GlyphPageTreeNode*>* roots; |
134 static GlyphPageTreeNode* pageZeroRoot; | 134 static GlyphPageTreeNode* pageZeroRoot; |
135 | 135 |
136 RefPtr<GlyphPage> m_page; | 136 RefPtr<GlyphPage> m_page; |
137 typedef HashMap<const FontData*, OwnPtr<GlyphPageTreeNode> > GlyphPageTreeNo
deMap; | 137 typedef HashMap<const FontData*, OwnPtr<GlyphPageTreeNode>> GlyphPageTreeNod
eMap; |
138 GlyphPageTreeNodeMap m_children; | 138 GlyphPageTreeNodeMap m_children; |
139 OwnPtr<SystemFallbackGlyphPageTreeNode> m_systemFallbackChild; | 139 OwnPtr<SystemFallbackGlyphPageTreeNode> m_systemFallbackChild; |
140 }; | 140 }; |
141 | 141 |
142 class PLATFORM_EXPORT SystemFallbackGlyphPageTreeNode : public GlyphPageTreeNode
Base { | 142 class PLATFORM_EXPORT SystemFallbackGlyphPageTreeNode : public GlyphPageTreeNode
Base { |
143 public: | 143 public: |
144 virtual GlyphPage* page(UScriptCode = USCRIPT_COMMON) override final; | 144 virtual GlyphPage* page(UScriptCode = USCRIPT_COMMON) override final; |
145 | 145 |
146 private: | 146 private: |
147 friend class GlyphPageTreeNode; | 147 friend class GlyphPageTreeNode; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 inline GlyphPageTreeNodeBase* GlyphPageTreeNode::getChild(const FontData* fontDa
ta, unsigned pageNumber) | 187 inline GlyphPageTreeNodeBase* GlyphPageTreeNode::getChild(const FontData* fontDa
ta, unsigned pageNumber) |
188 { | 188 { |
189 if (fontData) | 189 if (fontData) |
190 return getNormalChild(fontData, pageNumber); | 190 return getNormalChild(fontData, pageNumber); |
191 return getSystemFallbackChild(pageNumber); | 191 return getSystemFallbackChild(pageNumber); |
192 } | 192 } |
193 | 193 |
194 } // namespace blink | 194 } // namespace blink |
195 | 195 |
196 #endif // GlyphPageTreeNode_h | 196 #endif // GlyphPageTreeNode_h |
OLD | NEW |