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, 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 Loading... |
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 Loading... |
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) |
OLD | NEW |