| 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 12 matching lines...) Expand all Loading... |
| 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 Loading... |
| 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) |
| OLD | NEW |