OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "core/svg/SVGParserUtilities.h" | 24 #include "core/svg/SVGParserUtilities.h" |
25 #include "platform/fonts/Latin1TextIterator.h" | 25 #include "platform/fonts/Latin1TextIterator.h" |
26 #include "platform/fonts/SVGGlyph.h" | 26 #include "platform/fonts/SVGGlyph.h" |
27 #include "platform/text/SurrogatePairAwareTextIterator.h" | 27 #include "platform/text/SurrogatePairAwareTextIterator.h" |
28 #include "wtf/HashMap.h" | 28 #include "wtf/HashMap.h" |
29 #include "wtf/Vector.h" | 29 #include "wtf/Vector.h" |
30 | 30 |
31 namespace WebCore { | 31 namespace WebCore { |
32 | 32 |
33 struct GlyphMapNode; | 33 struct GlyphMapNode; |
34 class SVGFontData; | |
35 | 34 |
36 typedef HashMap<UChar32, RefPtr<GlyphMapNode> > GlyphMapLayer; | 35 typedef HashMap<UChar32, RefPtr<GlyphMapNode> > GlyphMapLayer; |
37 | 36 |
38 struct GlyphMapNode : public RefCounted<GlyphMapNode> { | 37 struct GlyphMapNode : public RefCounted<GlyphMapNode> { |
39 private: | 38 private: |
40 GlyphMapNode() { } | 39 GlyphMapNode() { } |
41 public: | 40 public: |
42 static PassRefPtr<GlyphMapNode> create() { return adoptRef(new GlyphMapNode)
; } | 41 static PassRefPtr<GlyphMapNode> create() { return adoptRef(new GlyphMapNode)
; } |
43 | 42 |
44 Vector<SVGGlyph> glyphs; | 43 Vector<SVGGlyph> glyphs; |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 Vector<SVGGlyph> m_glyphTable; | 245 Vector<SVGGlyph> m_glyphTable; |
247 HashMap<String, Glyph> m_namedGlyphs; | 246 HashMap<String, Glyph> m_namedGlyphs; |
248 HashMap<String, Glyph> m_idGlyphs; | 247 HashMap<String, Glyph> m_idGlyphs; |
249 int m_currentPriority; | 248 int m_currentPriority; |
250 }; | 249 }; |
251 | 250 |
252 } | 251 } |
253 | 252 |
254 #endif // ENABLE(SVG_FONTS) | 253 #endif // ENABLE(SVG_FONTS) |
255 #endif // SVGGlyphMap_h | 254 #endif // SVGGlyphMap_h |
OLD | NEW |