| 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 27 matching lines...) Expand all Loading... |
| 38 DEFINE_ANIMATED_STRING(SVGTextPathElement, XLinkNames::hrefAttr, Href, href) | 38 DEFINE_ANIMATED_STRING(SVGTextPathElement, XLinkNames::hrefAttr, Href, href) |
| 39 | 39 |
| 40 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGTextPathElement) | 40 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGTextPathElement) |
| 41 REGISTER_LOCAL_ANIMATED_PROPERTY(startOffset) | 41 REGISTER_LOCAL_ANIMATED_PROPERTY(startOffset) |
| 42 REGISTER_LOCAL_ANIMATED_PROPERTY(method) | 42 REGISTER_LOCAL_ANIMATED_PROPERTY(method) |
| 43 REGISTER_LOCAL_ANIMATED_PROPERTY(spacing) | 43 REGISTER_LOCAL_ANIMATED_PROPERTY(spacing) |
| 44 REGISTER_LOCAL_ANIMATED_PROPERTY(href) | 44 REGISTER_LOCAL_ANIMATED_PROPERTY(href) |
| 45 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTextContentElement) | 45 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTextContentElement) |
| 46 END_REGISTER_ANIMATED_PROPERTIES | 46 END_REGISTER_ANIMATED_PROPERTIES |
| 47 | 47 |
| 48 inline SVGTextPathElement::SVGTextPathElement(const QualifiedName& tagName, Docu
ment* document) | 48 inline SVGTextPathElement::SVGTextPathElement(const QualifiedName& tagName, Docu
ment& document) |
| 49 : SVGTextContentElement(tagName, document) | 49 : SVGTextContentElement(tagName, document) |
| 50 , m_startOffset(LengthModeOther) | 50 , m_startOffset(LengthModeOther) |
| 51 , m_method(SVGTextPathMethodAlign) | 51 , m_method(SVGTextPathMethodAlign) |
| 52 , m_spacing(SVGTextPathSpacingExact) | 52 , m_spacing(SVGTextPathSpacingExact) |
| 53 { | 53 { |
| 54 ASSERT(hasTagName(SVGNames::textPathTag)); | 54 ASSERT(hasTagName(SVGNames::textPathTag)); |
| 55 ScriptWrappable::init(this); | 55 ScriptWrappable::init(this); |
| 56 registerAnimatedPropertiesForSVGTextPathElement(); | 56 registerAnimatedPropertiesForSVGTextPathElement(); |
| 57 } | 57 } |
| 58 | 58 |
| 59 PassRefPtr<SVGTextPathElement> SVGTextPathElement::create(const QualifiedName& t
agName, Document* document) | 59 PassRefPtr<SVGTextPathElement> SVGTextPathElement::create(const QualifiedName& t
agName, Document& document) |
| 60 { | 60 { |
| 61 return adoptRef(new SVGTextPathElement(tagName, document)); | 61 return adoptRef(new SVGTextPathElement(tagName, document)); |
| 62 } | 62 } |
| 63 | 63 |
| 64 SVGTextPathElement::~SVGTextPathElement() | 64 SVGTextPathElement::~SVGTextPathElement() |
| 65 { | 65 { |
| 66 clearResourceReferences(); | 66 clearResourceReferences(); |
| 67 } | 67 } |
| 68 | 68 |
| 69 void SVGTextPathElement::clearResourceReferences() | 69 void SVGTextPathElement::clearResourceReferences() |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 clearResourceReferences(); | 191 clearResourceReferences(); |
| 192 } | 192 } |
| 193 | 193 |
| 194 bool SVGTextPathElement::selfHasRelativeLengths() const | 194 bool SVGTextPathElement::selfHasRelativeLengths() const |
| 195 { | 195 { |
| 196 return startOffsetCurrentValue().isRelative() | 196 return startOffsetCurrentValue().isRelative() |
| 197 || SVGTextContentElement::selfHasRelativeLengths(); | 197 || SVGTextContentElement::selfHasRelativeLengths(); |
| 198 } | 198 } |
| 199 | 199 |
| 200 } | 200 } |
| OLD | NEW |