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 19 matching lines...) Expand all Loading... |
30 #include "SVGFontFaceElement.h" | 30 #include "SVGFontFaceElement.h" |
31 #include "SVGNames.h" | 31 #include "SVGNames.h" |
32 #include "SVGPathUtilities.h" | 32 #include "SVGPathUtilities.h" |
33 | 33 |
34 namespace WebCore { | 34 namespace WebCore { |
35 | 35 |
36 inline SVGGlyphElement::SVGGlyphElement(const QualifiedName& tagName, Document*
document) | 36 inline SVGGlyphElement::SVGGlyphElement(const QualifiedName& tagName, Document*
document) |
37 : SVGStyledElement(tagName, document) | 37 : SVGStyledElement(tagName, document) |
38 { | 38 { |
39 ASSERT(hasTagName(SVGNames::glyphTag)); | 39 ASSERT(hasTagName(SVGNames::glyphTag)); |
| 40 ScriptWrappable::init(this); |
40 } | 41 } |
41 | 42 |
42 PassRefPtr<SVGGlyphElement> SVGGlyphElement::create(const QualifiedName& tagName
, Document* document) | 43 PassRefPtr<SVGGlyphElement> SVGGlyphElement::create(const QualifiedName& tagName
, Document* document) |
43 { | 44 { |
44 return adoptRef(new SVGGlyphElement(tagName, document)); | 45 return adoptRef(new SVGGlyphElement(tagName, document)); |
45 } | 46 } |
46 | 47 |
47 void SVGGlyphElement::invalidateGlyphCache() | 48 void SVGGlyphElement::invalidateGlyphCache() |
48 { | 49 { |
49 ContainerNode* fontNode = parentNode(); | 50 ContainerNode* fontNode = parentNode(); |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 String language = fastGetAttribute(SVGNames::langAttr); | 162 String language = fastGetAttribute(SVGNames::langAttr); |
162 if (!language.isEmpty()) | 163 if (!language.isEmpty()) |
163 identifier.languages = parseDelimitedString(language, ','); | 164 identifier.languages = parseDelimitedString(language, ','); |
164 | 165 |
165 return identifier; | 166 return identifier; |
166 } | 167 } |
167 | 168 |
168 } | 169 } |
169 | 170 |
170 #endif // ENABLE(SVG_FONTS) | 171 #endif // ENABLE(SVG_FONTS) |
OLD | NEW |