| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 SVGFontElement FINAL : public SVGElement { | 54 class SVGFontElement FINAL : public SVGElement { |
| 55 DEFINE_WRAPPERTYPEINFO(); |
| 55 public: | 56 public: |
| 56 DECLARE_NODE_FACTORY(SVGFontElement); | 57 DECLARE_NODE_FACTORY(SVGFontElement); |
| 57 | 58 |
| 58 void invalidateGlyphCache(); | 59 void invalidateGlyphCache(); |
| 59 void collectGlyphsForString(const String&, Vector<SVGGlyph>&); | 60 void collectGlyphsForString(const String&, Vector<SVGGlyph>&); |
| 60 void collectGlyphsForAltGlyphReference(const String&, Vector<SVGGlyph>&); | 61 void collectGlyphsForAltGlyphReference(const String&, Vector<SVGGlyph>&); |
| 61 | 62 |
| 62 float horizontalKerningForPairOfGlyphs(Glyph, Glyph) const; | 63 float horizontalKerningForPairOfGlyphs(Glyph, Glyph) const; |
| 63 float verticalKerningForPairOfGlyphs(Glyph, Glyph) const; | 64 float verticalKerningForPairOfGlyphs(Glyph, Glyph) const; |
| 64 | 65 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 81 KerningTable m_horizontalKerningTable; | 82 KerningTable m_horizontalKerningTable; |
| 82 KerningTable m_verticalKerningTable; | 83 KerningTable m_verticalKerningTable; |
| 83 SVGGlyphMap m_glyphMap; | 84 SVGGlyphMap m_glyphMap; |
| 84 Glyph m_missingGlyph; | 85 Glyph m_missingGlyph; |
| 85 bool m_isGlyphCacheValid; | 86 bool m_isGlyphCacheValid; |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 } // namespace blink | 89 } // namespace blink |
| 89 | 90 |
| 90 #endif // ENABLE(SVG_FONTS) | 91 #endif // ENABLE(SVG_FONTS) |
| 91 #endif | 92 #endif // SVGFontElement_h |
| OLD | NEW |