| 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 26 matching lines...) Expand all Loading... |
| 37 , m_dy(SVGAnimatedLengthList::create(this, SVGNames::dyAttr, SVGLengthList::
create(LengthModeHeight))) | 37 , m_dy(SVGAnimatedLengthList::create(this, SVGNames::dyAttr, SVGLengthList::
create(LengthModeHeight))) |
| 38 , m_rotate(SVGAnimatedNumberList::create(this, SVGNames::rotateAttr, SVGNumb
erList::create())) | 38 , m_rotate(SVGAnimatedNumberList::create(this, SVGNames::rotateAttr, SVGNumb
erList::create())) |
| 39 { | 39 { |
| 40 addToPropertyMap(m_x); | 40 addToPropertyMap(m_x); |
| 41 addToPropertyMap(m_y); | 41 addToPropertyMap(m_y); |
| 42 addToPropertyMap(m_dx); | 42 addToPropertyMap(m_dx); |
| 43 addToPropertyMap(m_dy); | 43 addToPropertyMap(m_dy); |
| 44 addToPropertyMap(m_rotate); | 44 addToPropertyMap(m_rotate); |
| 45 } | 45 } |
| 46 | 46 |
| 47 void SVGTextPositioningElement::trace(Visitor* visitor) |
| 48 { |
| 49 visitor->trace(m_x); |
| 50 visitor->trace(m_y); |
| 51 visitor->trace(m_dx); |
| 52 visitor->trace(m_dy); |
| 53 visitor->trace(m_rotate); |
| 54 SVGTextContentElement::trace(visitor); |
| 55 } |
| 56 |
| 47 bool SVGTextPositioningElement::isSupportedAttribute(const QualifiedName& attrNa
me) | 57 bool SVGTextPositioningElement::isSupportedAttribute(const QualifiedName& attrNa
me) |
| 48 { | 58 { |
| 49 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 59 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| 50 if (supportedAttributes.isEmpty()) { | 60 if (supportedAttributes.isEmpty()) { |
| 51 supportedAttributes.add(SVGNames::xAttr); | 61 supportedAttributes.add(SVGNames::xAttr); |
| 52 supportedAttributes.add(SVGNames::yAttr); | 62 supportedAttributes.add(SVGNames::yAttr); |
| 53 supportedAttributes.add(SVGNames::dxAttr); | 63 supportedAttributes.add(SVGNames::dxAttr); |
| 54 supportedAttributes.add(SVGNames::dyAttr); | 64 supportedAttributes.add(SVGNames::dyAttr); |
| 55 supportedAttributes.add(SVGNames::rotateAttr); | 65 supportedAttributes.add(SVGNames::rotateAttr); |
| 56 } | 66 } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 return 0; | 109 return 0; |
| 100 | 110 |
| 101 Node* node = renderer->node(); | 111 Node* node = renderer->node(); |
| 102 ASSERT(node); | 112 ASSERT(node); |
| 103 ASSERT(node->isSVGElement()); | 113 ASSERT(node->isSVGElement()); |
| 104 | 114 |
| 105 return isSVGTextPositioningElement(*node) ? toSVGTextPositioningElement(node
) : 0; | 115 return isSVGTextPositioningElement(*node) ? toSVGTextPositioningElement(node
) : 0; |
| 106 } | 116 } |
| 107 | 117 |
| 108 } | 118 } |
| OLD | NEW |