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

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

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. 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
« no previous file with comments | « Source/core/svg/SVGGElement.cpp ('k') | Source/core/svg/SVGGlyphRefElement.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, 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 15 matching lines...) Expand all
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 blink { 31 namespace blink {
32 32
33 inline 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);
37 } 36 }
38 37
39 DEFINE_NODE_FACTORY(SVGGlyphElement) 38 DEFINE_NODE_FACTORY(SVGGlyphElement)
40 39
41 void SVGGlyphElement::invalidateGlyphCache() 40 void SVGGlyphElement::invalidateGlyphCache()
42 { 41 {
43 ContainerNode* fontNode = parentNode(); 42 ContainerNode* fontNode = parentNode();
44 if (isSVGFontElement(fontNode)) 43 if (isSVGFontElement(fontNode))
45 toSVGFontElement(*fontNode).invalidateGlyphCache(); 44 toSVGFontElement(*fontNode).invalidateGlyphCache();
46 } 45 }
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 String language = fastGetAttribute(SVGNames::langAttr); 152 String language = fastGetAttribute(SVGNames::langAttr);
154 if (!language.isEmpty()) 153 if (!language.isEmpty())
155 identifier.languages = parseDelimitedString(language, ','); 154 identifier.languages = parseDelimitedString(language, ',');
156 155
157 return identifier; 156 return identifier;
158 } 157 }
159 158
160 } 159 }
161 160
162 #endif // ENABLE(SVG_FONTS) 161 #endif // ENABLE(SVG_FONTS)
OLDNEW
« no previous file with comments | « Source/core/svg/SVGGElement.cpp ('k') | Source/core/svg/SVGGlyphRefElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698