| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTextContentElement) | 46 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTextContentElement) |
| 47 END_REGISTER_ANIMATED_PROPERTIES | 47 END_REGISTER_ANIMATED_PROPERTIES |
| 48 | 48 |
| 49 inline SVGTextPathElement::SVGTextPathElement(const QualifiedName& tagName, Docu
ment* document) | 49 inline SVGTextPathElement::SVGTextPathElement(const QualifiedName& tagName, Docu
ment* document) |
| 50 : SVGTextContentElement(tagName, document) | 50 : SVGTextContentElement(tagName, document) |
| 51 , m_startOffset(LengthModeOther) | 51 , m_startOffset(LengthModeOther) |
| 52 , m_method(SVGTextPathMethodAlign) | 52 , m_method(SVGTextPathMethodAlign) |
| 53 , m_spacing(SVGTextPathSpacingExact) | 53 , m_spacing(SVGTextPathSpacingExact) |
| 54 { | 54 { |
| 55 ASSERT(hasTagName(SVGNames::textPathTag)); | 55 ASSERT(hasTagName(SVGNames::textPathTag)); |
| 56 ScriptWrappable::init(this); |
| 56 registerAnimatedPropertiesForSVGTextPathElement(); | 57 registerAnimatedPropertiesForSVGTextPathElement(); |
| 57 } | 58 } |
| 58 | 59 |
| 59 PassRefPtr<SVGTextPathElement> SVGTextPathElement::create(const QualifiedName& t
agName, Document* document) | 60 PassRefPtr<SVGTextPathElement> SVGTextPathElement::create(const QualifiedName& t
agName, Document* document) |
| 60 { | 61 { |
| 61 return adoptRef(new SVGTextPathElement(tagName, document)); | 62 return adoptRef(new SVGTextPathElement(tagName, document)); |
| 62 } | 63 } |
| 63 | 64 |
| 64 SVGTextPathElement::~SVGTextPathElement() | 65 SVGTextPathElement::~SVGTextPathElement() |
| 65 { | 66 { |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 | 195 |
| 195 bool SVGTextPathElement::selfHasRelativeLengths() const | 196 bool SVGTextPathElement::selfHasRelativeLengths() const |
| 196 { | 197 { |
| 197 return startOffset().isRelative() | 198 return startOffset().isRelative() |
| 198 || SVGTextContentElement::selfHasRelativeLengths(); | 199 || SVGTextContentElement::selfHasRelativeLengths(); |
| 199 } | 200 } |
| 200 | 201 |
| 201 } | 202 } |
| 202 | 203 |
| 203 #endif // ENABLE(SVG) | 204 #endif // ENABLE(SVG) |
| OLD | NEW |