| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Rob Buis <buis@kde.org> |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 bool SVGTextPositioningElement::isSupportedAttribute(const QualifiedName& attrNa
me) | 57 bool SVGTextPositioningElement::isSupportedAttribute(const QualifiedName& attrNa
me) |
| 58 { | 58 { |
| 59 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 59 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| 60 if (supportedAttributes.isEmpty()) { | 60 if (supportedAttributes.isEmpty()) { |
| 61 supportedAttributes.add(SVGNames::xAttr); | 61 supportedAttributes.add(SVGNames::xAttr); |
| 62 supportedAttributes.add(SVGNames::yAttr); | 62 supportedAttributes.add(SVGNames::yAttr); |
| 63 supportedAttributes.add(SVGNames::dxAttr); | 63 supportedAttributes.add(SVGNames::dxAttr); |
| 64 supportedAttributes.add(SVGNames::dyAttr); | 64 supportedAttributes.add(SVGNames::dyAttr); |
| 65 supportedAttributes.add(SVGNames::rotateAttr); | 65 supportedAttributes.add(SVGNames::rotateAttr); |
| 66 } | 66 } |
| 67 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato
r>(attrName); | 67 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName); |
| 68 } | 68 } |
| 69 | 69 |
| 70 void SVGTextPositioningElement::parseAttribute(const QualifiedName& name, const
AtomicString& value) | 70 void SVGTextPositioningElement::parseAttribute(const QualifiedName& name, const
AtomicString& value) |
| 71 { | 71 { |
| 72 if (!isSupportedAttribute(name)) { | 72 if (!isSupportedAttribute(name)) { |
| 73 SVGTextContentElement::parseAttribute(name, value); | 73 SVGTextContentElement::parseAttribute(name, value); |
| 74 return; | 74 return; |
| 75 } | 75 } |
| 76 | 76 |
| 77 if (name == SVGNames::xAttr) { | 77 if (name == SVGNames::xAttr) { |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 #if ENABLE(SVG_FONTS) | 165 #if ENABLE(SVG_FONTS) |
| 166 && !node->hasTagName(SVGNames::altGlyphTag) | 166 && !node->hasTagName(SVGNames::altGlyphTag) |
| 167 #endif | 167 #endif |
| 168 && !node->hasTagName(SVGNames::trefTag)) | 168 && !node->hasTagName(SVGNames::trefTag)) |
| 169 return 0; | 169 return 0; |
| 170 | 170 |
| 171 return static_cast<SVGTextPositioningElement*>(node); | 171 return static_cast<SVGTextPositioningElement*>(node); |
| 172 } | 172 } |
| 173 | 173 |
| 174 } | 174 } |
| OLD | NEW |