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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 DEFINE_ANIMATED_ENUMERATION(SVGTextContentElement, SVGNames::lengthAdjustAttr, L
engthAdjust, lengthAdjust, SVGLengthAdjustType) | 55 DEFINE_ANIMATED_ENUMERATION(SVGTextContentElement, SVGNames::lengthAdjustAttr, L
engthAdjust, lengthAdjust, SVGLengthAdjustType) |
56 DEFINE_ANIMATED_BOOLEAN(SVGTextContentElement, SVGNames::externalResourcesRequir
edAttr, ExternalResourcesRequired, externalResourcesRequired) | 56 DEFINE_ANIMATED_BOOLEAN(SVGTextContentElement, SVGNames::externalResourcesRequir
edAttr, ExternalResourcesRequired, externalResourcesRequired) |
57 | 57 |
58 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGTextContentElement) | 58 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGTextContentElement) |
59 REGISTER_LOCAL_ANIMATED_PROPERTY(textLength) | 59 REGISTER_LOCAL_ANIMATED_PROPERTY(textLength) |
60 REGISTER_LOCAL_ANIMATED_PROPERTY(lengthAdjust) | 60 REGISTER_LOCAL_ANIMATED_PROPERTY(lengthAdjust) |
61 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) | 61 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) |
62 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement) | 62 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement) |
63 END_REGISTER_ANIMATED_PROPERTIES | 63 END_REGISTER_ANIMATED_PROPERTIES |
64 | 64 |
65 SVGTextContentElement::SVGTextContentElement(const QualifiedName& tagName, Docum
ent* document) | 65 SVGTextContentElement::SVGTextContentElement(const QualifiedName& tagName, Docum
ent& document) |
66 : SVGGraphicsElement(tagName, document) | 66 : SVGGraphicsElement(tagName, document) |
67 , m_textLength(LengthModeOther) | 67 , m_textLength(LengthModeOther) |
68 , m_specifiedTextLength(LengthModeOther) | 68 , m_specifiedTextLength(LengthModeOther) |
69 , m_lengthAdjust(SVGLengthAdjustSpacing) | 69 , m_lengthAdjust(SVGLengthAdjustSpacing) |
70 { | 70 { |
71 ScriptWrappable::init(this); | 71 ScriptWrappable::init(this); |
72 registerAnimatedPropertiesForSVGTextContentElement(); | 72 registerAnimatedPropertiesForSVGTextContentElement(); |
73 } | 73 } |
74 | 74 |
75 void SVGTextContentElement::synchronizeTextLength(SVGElement* contextElement) | 75 void SVGTextContentElement::synchronizeTextLength(SVGElement* contextElement) |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 SVGElement* element = toSVGElement(renderer->node()); | 297 SVGElement* element = toSVGElement(renderer->node()); |
298 ASSERT(element); | 298 ASSERT(element); |
299 | 299 |
300 if (!element->isTextContent()) | 300 if (!element->isTextContent()) |
301 return 0; | 301 return 0; |
302 | 302 |
303 return toSVGTextContentElement(element); | 303 return toSVGTextContentElement(element); |
304 } | 304 } |
305 | 305 |
306 } | 306 } |
OLD | NEW |