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 29 matching lines...) Expand all Loading... |
40 | 40 |
41 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGTextPositioningElement) | 41 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGTextPositioningElement) |
42 REGISTER_LOCAL_ANIMATED_PROPERTY(x) | 42 REGISTER_LOCAL_ANIMATED_PROPERTY(x) |
43 REGISTER_LOCAL_ANIMATED_PROPERTY(y) | 43 REGISTER_LOCAL_ANIMATED_PROPERTY(y) |
44 REGISTER_LOCAL_ANIMATED_PROPERTY(dx) | 44 REGISTER_LOCAL_ANIMATED_PROPERTY(dx) |
45 REGISTER_LOCAL_ANIMATED_PROPERTY(dy) | 45 REGISTER_LOCAL_ANIMATED_PROPERTY(dy) |
46 REGISTER_LOCAL_ANIMATED_PROPERTY(rotate) | 46 REGISTER_LOCAL_ANIMATED_PROPERTY(rotate) |
47 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTextContentElement) | 47 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTextContentElement) |
48 END_REGISTER_ANIMATED_PROPERTIES | 48 END_REGISTER_ANIMATED_PROPERTIES |
49 | 49 |
50 SVGTextPositioningElement::SVGTextPositioningElement(const QualifiedName& tagNam
e, Document* document) | 50 SVGTextPositioningElement::SVGTextPositioningElement(const QualifiedName& tagNam
e, Document& document) |
51 : SVGTextContentElement(tagName, document) | 51 : SVGTextContentElement(tagName, document) |
52 { | 52 { |
53 ScriptWrappable::init(this); | 53 ScriptWrappable::init(this); |
54 registerAnimatedPropertiesForSVGTextPositioningElement(); | 54 registerAnimatedPropertiesForSVGTextPositioningElement(); |
55 } | 55 } |
56 | 56 |
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()) { |
(...skipping 104 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 |