| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 REGISTER_LOCAL_ANIMATED_PROPERTY(y) | 45 REGISTER_LOCAL_ANIMATED_PROPERTY(y) |
| 46 REGISTER_LOCAL_ANIMATED_PROPERTY(dx) | 46 REGISTER_LOCAL_ANIMATED_PROPERTY(dx) |
| 47 REGISTER_LOCAL_ANIMATED_PROPERTY(dy) | 47 REGISTER_LOCAL_ANIMATED_PROPERTY(dy) |
| 48 REGISTER_LOCAL_ANIMATED_PROPERTY(rotate) | 48 REGISTER_LOCAL_ANIMATED_PROPERTY(rotate) |
| 49 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTextContentElement) | 49 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTextContentElement) |
| 50 END_REGISTER_ANIMATED_PROPERTIES | 50 END_REGISTER_ANIMATED_PROPERTIES |
| 51 | 51 |
| 52 SVGTextPositioningElement::SVGTextPositioningElement(const QualifiedName& tagNam
e, Document* document) | 52 SVGTextPositioningElement::SVGTextPositioningElement(const QualifiedName& tagNam
e, Document* document) |
| 53 : SVGTextContentElement(tagName, document) | 53 : SVGTextContentElement(tagName, document) |
| 54 { | 54 { |
| 55 ScriptWrappable::init(this); |
| 55 registerAnimatedPropertiesForSVGTextPositioningElement(); | 56 registerAnimatedPropertiesForSVGTextPositioningElement(); |
| 56 } | 57 } |
| 57 | 58 |
| 58 bool SVGTextPositioningElement::isSupportedAttribute(const QualifiedName& attrNa
me) | 59 bool SVGTextPositioningElement::isSupportedAttribute(const QualifiedName& attrNa
me) |
| 59 { | 60 { |
| 60 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 61 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| 61 if (supportedAttributes.isEmpty()) { | 62 if (supportedAttributes.isEmpty()) { |
| 62 supportedAttributes.add(SVGNames::xAttr); | 63 supportedAttributes.add(SVGNames::xAttr); |
| 63 supportedAttributes.add(SVGNames::yAttr); | 64 supportedAttributes.add(SVGNames::yAttr); |
| 64 supportedAttributes.add(SVGNames::dxAttr); | 65 supportedAttributes.add(SVGNames::dxAttr); |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 #endif | 169 #endif |
| 169 && !node->hasTagName(SVGNames::trefTag)) | 170 && !node->hasTagName(SVGNames::trefTag)) |
| 170 return 0; | 171 return 0; |
| 171 | 172 |
| 172 return static_cast<SVGTextPositioningElement*>(node); | 173 return static_cast<SVGTextPositioningElement*>(node); |
| 173 } | 174 } |
| 174 | 175 |
| 175 } | 176 } |
| 176 | 177 |
| 177 #endif // ENABLE(SVG) | 178 #endif // ENABLE(SVG) |
| OLD | NEW |