OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 SVGKerningPair() | 44 SVGKerningPair() |
45 : kerning(0) | 45 : kerning(0) |
46 { | 46 { |
47 } | 47 } |
48 }; | 48 }; |
49 | 49 |
50 typedef unsigned KerningPairKey; | 50 typedef unsigned KerningPairKey; |
51 typedef Vector<SVGKerningPair> KerningPairVector; | 51 typedef Vector<SVGKerningPair> KerningPairVector; |
52 typedef HashMap<KerningPairKey, float> KerningTable; | 52 typedef HashMap<KerningPairKey, float> KerningTable; |
53 | 53 |
54 class SVGMissingGlyphElement; | |
55 | |
56 class SVGFontElement FINAL : public SVGElement { | 54 class SVGFontElement FINAL : public SVGElement { |
57 public: | 55 public: |
58 DECLARE_NODE_FACTORY(SVGFontElement); | 56 DECLARE_NODE_FACTORY(SVGFontElement); |
59 | 57 |
60 void invalidateGlyphCache(); | 58 void invalidateGlyphCache(); |
61 void collectGlyphsForString(const String&, Vector<SVGGlyph>&); | 59 void collectGlyphsForString(const String&, Vector<SVGGlyph>&); |
62 void collectGlyphsForAltGlyphReference(const String&, Vector<SVGGlyph>&); | 60 void collectGlyphsForAltGlyphReference(const String&, Vector<SVGGlyph>&); |
63 | 61 |
64 float horizontalKerningForPairOfGlyphs(Glyph, Glyph) const; | 62 float horizontalKerningForPairOfGlyphs(Glyph, Glyph) const; |
65 float verticalKerningForPairOfGlyphs(Glyph, Glyph) const; | 63 float verticalKerningForPairOfGlyphs(Glyph, Glyph) const; |
(...skipping 18 matching lines...) Expand all Loading... |
84 KerningTable m_verticalKerningTable; | 82 KerningTable m_verticalKerningTable; |
85 SVGGlyphMap m_glyphMap; | 83 SVGGlyphMap m_glyphMap; |
86 Glyph m_missingGlyph; | 84 Glyph m_missingGlyph; |
87 bool m_isGlyphCacheValid; | 85 bool m_isGlyphCacheValid; |
88 }; | 86 }; |
89 | 87 |
90 } // namespace WebCore | 88 } // namespace WebCore |
91 | 89 |
92 #endif // ENABLE(SVG_FONTS) | 90 #endif // ENABLE(SVG_FONTS) |
93 #endif | 91 #endif |
OLD | NEW |