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 20 matching lines...) Expand all Loading... |
31 namespace WebCore { | 31 namespace WebCore { |
32 | 32 |
33 SVGTextPositioningElement::SVGTextPositioningElement(const QualifiedName& tagNam
e, Document& document) | 33 SVGTextPositioningElement::SVGTextPositioningElement(const QualifiedName& tagNam
e, Document& document) |
34 : SVGTextContentElement(tagName, document) | 34 : SVGTextContentElement(tagName, document) |
35 , m_x(SVGAnimatedLengthList::create(this, SVGNames::xAttr, SVGLengthList::cr
eate(LengthModeWidth))) | 35 , m_x(SVGAnimatedLengthList::create(this, SVGNames::xAttr, SVGLengthList::cr
eate(LengthModeWidth))) |
36 , m_y(SVGAnimatedLengthList::create(this, SVGNames::yAttr, SVGLengthList::cr
eate(LengthModeHeight))) | 36 , m_y(SVGAnimatedLengthList::create(this, SVGNames::yAttr, SVGLengthList::cr
eate(LengthModeHeight))) |
37 , m_dx(SVGAnimatedLengthList::create(this, SVGNames::dxAttr, SVGLengthList::
create(LengthModeWidth))) | 37 , m_dx(SVGAnimatedLengthList::create(this, SVGNames::dxAttr, SVGLengthList::
create(LengthModeWidth))) |
38 , m_dy(SVGAnimatedLengthList::create(this, SVGNames::dyAttr, SVGLengthList::
create(LengthModeHeight))) | 38 , m_dy(SVGAnimatedLengthList::create(this, SVGNames::dyAttr, SVGLengthList::
create(LengthModeHeight))) |
39 , m_rotate(SVGAnimatedNumberList::create(this, SVGNames::rotateAttr, SVGNumb
erList::create())) | 39 , m_rotate(SVGAnimatedNumberList::create(this, SVGNames::rotateAttr, SVGNumb
erList::create())) |
40 { | 40 { |
41 ScriptWrappable::init(this); | |
42 | |
43 addToPropertyMap(m_x); | 41 addToPropertyMap(m_x); |
44 addToPropertyMap(m_y); | 42 addToPropertyMap(m_y); |
45 addToPropertyMap(m_dx); | 43 addToPropertyMap(m_dx); |
46 addToPropertyMap(m_dy); | 44 addToPropertyMap(m_dy); |
47 addToPropertyMap(m_rotate); | 45 addToPropertyMap(m_rotate); |
48 } | 46 } |
49 | 47 |
50 bool SVGTextPositioningElement::isSupportedAttribute(const QualifiedName& attrNa
me) | 48 bool SVGTextPositioningElement::isSupportedAttribute(const QualifiedName& attrNa
me) |
51 { | 49 { |
52 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 50 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 return 0; | 123 return 0; |
126 | 124 |
127 Node* node = renderer->node(); | 125 Node* node = renderer->node(); |
128 ASSERT(node); | 126 ASSERT(node); |
129 ASSERT(node->isSVGElement()); | 127 ASSERT(node->isSVGElement()); |
130 | 128 |
131 return isSVGTextPositioningElement(*node) ? toSVGTextPositioningElement(node
) : 0; | 129 return isSVGTextPositioningElement(*node) ? toSVGTextPositioningElement(node
) : 0; |
132 } | 130 } |
133 | 131 |
134 } | 132 } |
OLD | NEW |