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

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

Issue 327633004: Apply DEFINE/DECLARE_NODE_FACTORY(T) macro to element factories with single Document& argument. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/core/svg/SVGFilterElement.cpp ('k') | Source/core/svg/SVGFontElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFilterElement.cpp ('k') | Source/core/svg/SVGFontElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698