OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007, 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 bool SVGTextContentElement::isSupportedAttribute(const QualifiedName& attrName) | 214 bool SVGTextContentElement::isSupportedAttribute(const QualifiedName& attrName) |
215 { | 215 { |
216 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 216 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
217 if (supportedAttributes.isEmpty()) { | 217 if (supportedAttributes.isEmpty()) { |
218 SVGTests::addSupportedAttributes(supportedAttributes); | 218 SVGTests::addSupportedAttributes(supportedAttributes); |
219 SVGLangSpace::addSupportedAttributes(supportedAttributes); | 219 SVGLangSpace::addSupportedAttributes(supportedAttributes); |
220 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes
); | 220 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes
); |
221 supportedAttributes.add(SVGNames::lengthAdjustAttr); | 221 supportedAttributes.add(SVGNames::lengthAdjustAttr); |
222 supportedAttributes.add(SVGNames::textLengthAttr); | 222 supportedAttributes.add(SVGNames::textLengthAttr); |
223 } | 223 } |
224 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato
r>(attrName); | 224 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName); |
225 } | 225 } |
226 | 226 |
227 bool SVGTextContentElement::isPresentationAttribute(const QualifiedName& name) c
onst | 227 bool SVGTextContentElement::isPresentationAttribute(const QualifiedName& name) c
onst |
228 { | 228 { |
229 if (name.matches(XMLNames::spaceAttr)) | 229 if (name.matches(XMLNames::spaceAttr)) |
230 return true; | 230 return true; |
231 return SVGStyledElement::isPresentationAttribute(name); | 231 return SVGStyledElement::isPresentationAttribute(name); |
232 } | 232 } |
233 | 233 |
234 void SVGTextContentElement::collectStyleForPresentationAttribute(const Qualified
Name& name, const AtomicString& value, MutableStylePropertySet* style) | 234 void SVGTextContentElement::collectStyleForPresentationAttribute(const Qualified
Name& name, const AtomicString& value, MutableStylePropertySet* style) |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 && !node->hasTagName(SVGNames::altGlyphTag) | 311 && !node->hasTagName(SVGNames::altGlyphTag) |
312 #endif | 312 #endif |
313 && !node->hasTagName(SVGNames::trefTag) | 313 && !node->hasTagName(SVGNames::trefTag) |
314 && !node->hasTagName(SVGNames::textPathTag)) | 314 && !node->hasTagName(SVGNames::textPathTag)) |
315 return 0; | 315 return 0; |
316 | 316 |
317 return static_cast<SVGTextContentElement*>(node); | 317 return static_cast<SVGTextContentElement*>(node); |
318 } | 318 } |
319 | 319 |
320 } | 320 } |
OLD | NEW |