Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: Source/core/svg/SVGFontElement.h

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFilterPrimitiveStandardAttributes.h ('k') | Source/core/svg/SVGFontFaceElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698