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 13 matching lines...) Expand all Loading... |
24 | 24 |
25 #include "SVGNames.h" | 25 #include "SVGNames.h" |
26 #include "core/rendering/svg/RenderSVGResource.h" | 26 #include "core/rendering/svg/RenderSVGResource.h" |
27 #include "core/rendering/svg/RenderSVGText.h" | 27 #include "core/rendering/svg/RenderSVGText.h" |
28 #include "core/svg/SVGElementInstance.h" | 28 #include "core/svg/SVGElementInstance.h" |
29 #include "core/svg/SVGLengthList.h" | 29 #include "core/svg/SVGLengthList.h" |
30 #include "core/svg/SVGNumberList.h" | 30 #include "core/svg/SVGNumberList.h" |
31 | 31 |
32 namespace WebCore { | 32 namespace WebCore { |
33 | 33 |
34 // Animated property definitions | |
35 | |
36 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGTextPositioningElement) | |
37 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTextContentElement) | |
38 END_REGISTER_ANIMATED_PROPERTIES | |
39 | |
40 SVGTextPositioningElement::SVGTextPositioningElement(const QualifiedName& tagNam
e, Document& document) | 34 SVGTextPositioningElement::SVGTextPositioningElement(const QualifiedName& tagNam
e, Document& document) |
41 : SVGTextContentElement(tagName, document) | 35 : SVGTextContentElement(tagName, document) |
42 , m_x(SVGAnimatedLengthList::create(this, SVGNames::xAttr, SVGLengthList::cr
eate(LengthModeWidth))) | 36 , m_x(SVGAnimatedLengthList::create(this, SVGNames::xAttr, SVGLengthList::cr
eate(LengthModeWidth))) |
43 , m_y(SVGAnimatedLengthList::create(this, SVGNames::yAttr, SVGLengthList::cr
eate(LengthModeHeight))) | 37 , m_y(SVGAnimatedLengthList::create(this, SVGNames::yAttr, SVGLengthList::cr
eate(LengthModeHeight))) |
44 , m_dx(SVGAnimatedLengthList::create(this, SVGNames::dxAttr, SVGLengthList::
create(LengthModeWidth))) | 38 , m_dx(SVGAnimatedLengthList::create(this, SVGNames::dxAttr, SVGLengthList::
create(LengthModeWidth))) |
45 , m_dy(SVGAnimatedLengthList::create(this, SVGNames::dyAttr, SVGLengthList::
create(LengthModeHeight))) | 39 , m_dy(SVGAnimatedLengthList::create(this, SVGNames::dyAttr, SVGLengthList::
create(LengthModeHeight))) |
46 , m_rotate(SVGAnimatedNumberList::create(this, SVGNames::rotateAttr, SVGNumb
erList::create())) | 40 , m_rotate(SVGAnimatedNumberList::create(this, SVGNames::rotateAttr, SVGNumb
erList::create())) |
47 { | 41 { |
48 ScriptWrappable::init(this); | 42 ScriptWrappable::init(this); |
49 | 43 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 #if ENABLE(SVG_FONTS) | 133 #if ENABLE(SVG_FONTS) |
140 && !node->hasTagName(SVGNames::altGlyphTag) | 134 && !node->hasTagName(SVGNames::altGlyphTag) |
141 #endif | 135 #endif |
142 && !node->hasTagName(SVGNames::tspanTag)) | 136 && !node->hasTagName(SVGNames::tspanTag)) |
143 return 0; | 137 return 0; |
144 | 138 |
145 return toSVGTextPositioningElement(node); | 139 return toSVGTextPositioningElement(node); |
146 } | 140 } |
147 | 141 |
148 } | 142 } |
OLD | NEW |