OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2010 Rob Buis <rwlbuis@gmail.com> | 3 * Copyright (C) 2010 Rob Buis <rwlbuis@gmail.com> |
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 , SVGURIReference(this) | 62 , SVGURIReference(this) |
63 , m_startOffset(SVGAnimatedLength::create(this, SVGNames::startOffsetAttr, S
VGLength::create(LengthModeOther))) | 63 , m_startOffset(SVGAnimatedLength::create(this, SVGNames::startOffsetAttr, S
VGLength::create(LengthModeOther))) |
64 , m_method(SVGAnimatedEnumeration<SVGTextPathMethodType>::create(this, SVGNa
mes::methodAttr, SVGTextPathMethodAlign)) | 64 , m_method(SVGAnimatedEnumeration<SVGTextPathMethodType>::create(this, SVGNa
mes::methodAttr, SVGTextPathMethodAlign)) |
65 , m_spacing(SVGAnimatedEnumeration<SVGTextPathSpacingType>::create(this, SVG
Names::spacingAttr, SVGTextPathSpacingExact)) | 65 , m_spacing(SVGAnimatedEnumeration<SVGTextPathSpacingType>::create(this, SVG
Names::spacingAttr, SVGTextPathSpacingExact)) |
66 { | 66 { |
67 ScriptWrappable::init(this); | 67 ScriptWrappable::init(this); |
68 | 68 |
69 addToPropertyMap(m_startOffset); | 69 addToPropertyMap(m_startOffset); |
70 addToPropertyMap(m_method); | 70 addToPropertyMap(m_method); |
71 addToPropertyMap(m_spacing); | 71 addToPropertyMap(m_spacing); |
72 registerAnimatedPropertiesForSVGTextPathElement(); | |
73 } | 72 } |
74 | 73 |
75 PassRefPtr<SVGTextPathElement> SVGTextPathElement::create(Document& document) | 74 PassRefPtr<SVGTextPathElement> SVGTextPathElement::create(Document& document) |
76 { | 75 { |
77 return adoptRef(new SVGTextPathElement(document)); | 76 return adoptRef(new SVGTextPathElement(document)); |
78 } | 77 } |
79 | 78 |
80 SVGTextPathElement::~SVGTextPathElement() | 79 SVGTextPathElement::~SVGTextPathElement() |
81 { | 80 { |
82 clearResourceReferences(); | 81 clearResourceReferences(); |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 clearResourceReferences(); | 191 clearResourceReferences(); |
193 } | 192 } |
194 | 193 |
195 bool SVGTextPathElement::selfHasRelativeLengths() const | 194 bool SVGTextPathElement::selfHasRelativeLengths() const |
196 { | 195 { |
197 return m_startOffset->currentValue()->isRelative() | 196 return m_startOffset->currentValue()->isRelative() |
198 || SVGTextContentElement::selfHasRelativeLengths(); | 197 || SVGTextContentElement::selfHasRelativeLengths(); |
199 } | 198 } |
200 | 199 |
201 } | 200 } |
OLD | NEW |