| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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; | 54 class SVGMissingGlyphElement; |
| 55 | 55 |
| 56 class SVGFontElement FINAL : public SVGElement { | 56 class SVGFontElement FINAL : public SVGElement { |
| 57 public: | 57 public: |
| 58 DEFINE_NODE_FACTORY(SVGFontElement); | 58 DECLARE_NODE_FACTORY(SVGFontElement); |
| 59 | 59 |
| 60 void invalidateGlyphCache(); | 60 void invalidateGlyphCache(); |
| 61 void collectGlyphsForString(const String&, Vector<SVGGlyph>&); | 61 void collectGlyphsForString(const String&, Vector<SVGGlyph>&); |
| 62 void collectGlyphsForAltGlyphReference(const String&, Vector<SVGGlyph>&); | 62 void collectGlyphsForAltGlyphReference(const String&, Vector<SVGGlyph>&); |
| 63 | 63 |
| 64 float horizontalKerningForPairOfGlyphs(Glyph, Glyph) const; | 64 float horizontalKerningForPairOfGlyphs(Glyph, Glyph) const; |
| 65 float verticalKerningForPairOfGlyphs(Glyph, Glyph) const; | 65 float verticalKerningForPairOfGlyphs(Glyph, Glyph) const; |
| 66 | 66 |
| 67 // Used by SimpleFontData/WidthIterator. | 67 // Used by SimpleFontData/WidthIterator. |
| 68 SVGGlyph svgGlyphForGlyph(Glyph); | 68 SVGGlyph svgGlyphForGlyph(Glyph); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 84 KerningTable m_verticalKerningTable; | 84 KerningTable m_verticalKerningTable; |
| 85 SVGGlyphMap m_glyphMap; | 85 SVGGlyphMap m_glyphMap; |
| 86 Glyph m_missingGlyph; | 86 Glyph m_missingGlyph; |
| 87 bool m_isGlyphCacheValid; | 87 bool m_isGlyphCacheValid; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace WebCore | 90 } // namespace WebCore |
| 91 | 91 |
| 92 #endif // ENABLE(SVG_FONTS) | 92 #endif // ENABLE(SVG_FONTS) |
| 93 #endif | 93 #endif |
| OLD | NEW |