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

Side by Side Diff: Source/core/svg/SVGGlyphElement.cpp

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/SVGGlyphElement.h ('k') | Source/core/svg/SVGGlyphRefElement.h » ('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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) 2008 Rob Buis <buis@kde.org> 4 * Copyright (C) 2008 Rob Buis <buis@kde.org>
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 12 matching lines...) Expand all
23 23
24 #if ENABLE(SVG_FONTS) 24 #if ENABLE(SVG_FONTS)
25 #include "core/svg/SVGGlyphElement.h" 25 #include "core/svg/SVGGlyphElement.h"
26 26
27 #include "core/svg/SVGFontData.h" 27 #include "core/svg/SVGFontData.h"
28 #include "core/svg/SVGFontElement.h" 28 #include "core/svg/SVGFontElement.h"
29 #include "core/svg/SVGPathUtilities.h" 29 #include "core/svg/SVGPathUtilities.h"
30 30
31 namespace WebCore { 31 namespace WebCore {
32 32
33 SVGGlyphElement::SVGGlyphElement(Document& document) 33 inline SVGGlyphElement::SVGGlyphElement(Document& document)
34 : SVGElement(SVGNames::glyphTag, document) 34 : SVGElement(SVGNames::glyphTag, document)
35 { 35 {
36 ScriptWrappable::init(this); 36 ScriptWrappable::init(this);
37 } 37 }
38 38
39 DEFINE_NODE_FACTORY(SVGGlyphElement)
40
39 void SVGGlyphElement::invalidateGlyphCache() 41 void SVGGlyphElement::invalidateGlyphCache()
40 { 42 {
41 ContainerNode* fontNode = parentNode(); 43 ContainerNode* fontNode = parentNode();
42 if (isSVGFontElement(fontNode)) 44 if (isSVGFontElement(fontNode))
43 toSVGFontElement(*fontNode).invalidateGlyphCache(); 45 toSVGFontElement(*fontNode).invalidateGlyphCache();
44 } 46 }
45 47
46 void SVGGlyphElement::parseAttribute(const QualifiedName& name, const AtomicStri ng& value) 48 void SVGGlyphElement::parseAttribute(const QualifiedName& name, const AtomicStri ng& value)
47 { 49 {
48 if (name == SVGNames::dAttr) 50 if (name == SVGNames::dAttr)
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 String language = fastGetAttribute(SVGNames::langAttr); 153 String language = fastGetAttribute(SVGNames::langAttr);
152 if (!language.isEmpty()) 154 if (!language.isEmpty())
153 identifier.languages = parseDelimitedString(language, ','); 155 identifier.languages = parseDelimitedString(language, ',');
154 156
155 return identifier; 157 return identifier;
156 } 158 }
157 159
158 } 160 }
159 161
160 #endif // ENABLE(SVG_FONTS) 162 #endif // ENABLE(SVG_FONTS)
OLDNEW
« no previous file with comments | « Source/core/svg/SVGGlyphElement.h ('k') | Source/core/svg/SVGGlyphRefElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698