| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007, 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 return SVGAnimatedLength::baseVal(); | 68 return SVGAnimatedLength::baseVal(); |
| 69 } | 69 } |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 SVGAnimatedTextLength(SVGTextContentElement* contextElement) | 72 SVGAnimatedTextLength(SVGTextContentElement* contextElement) |
| 73 : SVGAnimatedLength(contextElement, SVGNames::textLengthAttr, SVGLength:
:create(LengthModeOther)) | 73 : SVGAnimatedLength(contextElement, SVGNames::textLengthAttr, SVGLength:
:create(LengthModeOther)) |
| 74 { | 74 { |
| 75 } | 75 } |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGTextContentElement) | |
| 79 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement) | |
| 80 END_REGISTER_ANIMATED_PROPERTIES | |
| 81 | 78 |
| 82 SVGTextContentElement::SVGTextContentElement(const QualifiedName& tagName, Docum
ent& document) | 79 SVGTextContentElement::SVGTextContentElement(const QualifiedName& tagName, Docum
ent& document) |
| 83 : SVGGraphicsElement(tagName, document) | 80 : SVGGraphicsElement(tagName, document) |
| 84 , m_textLength(SVGAnimatedTextLength::create(this)) | 81 , m_textLength(SVGAnimatedTextLength::create(this)) |
| 85 , m_textLengthIsSpecifiedByUser(false) | 82 , m_textLengthIsSpecifiedByUser(false) |
| 86 , m_lengthAdjust(SVGAnimatedEnumeration<SVGLengthAdjustType>::create(this, S
VGNames::lengthAdjustAttr, SVGLengthAdjustSpacing)) | 83 , m_lengthAdjust(SVGAnimatedEnumeration<SVGLengthAdjustType>::create(this, S
VGNames::lengthAdjustAttr, SVGLengthAdjustSpacing)) |
| 87 { | 84 { |
| 88 ScriptWrappable::init(this); | 85 ScriptWrappable::init(this); |
| 89 | 86 |
| 90 addToPropertyMap(m_textLength); | 87 addToPropertyMap(m_textLength); |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 SVGElement* element = toSVGElement(renderer->node()); | 283 SVGElement* element = toSVGElement(renderer->node()); |
| 287 ASSERT(element); | 284 ASSERT(element); |
| 288 | 285 |
| 289 if (!element->isTextContent()) | 286 if (!element->isTextContent()) |
| 290 return 0; | 287 return 0; |
| 291 | 288 |
| 292 return toSVGTextContentElement(element); | 289 return toSVGTextContentElement(element); |
| 293 } | 290 } |
| 294 | 291 |
| 295 } | 292 } |
| OLD | NEW |