| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 // Animated property definitions | 33 // Animated property definitions |
| 34 | 34 |
| 35 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGMPathElement) | 35 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGMPathElement) |
| 36 END_REGISTER_ANIMATED_PROPERTIES | 36 END_REGISTER_ANIMATED_PROPERTIES |
| 37 | 37 |
| 38 inline SVGMPathElement::SVGMPathElement(Document& document) | 38 inline SVGMPathElement::SVGMPathElement(Document& document) |
| 39 : SVGElement(SVGNames::mpathTag, document) | 39 : SVGElement(SVGNames::mpathTag, document) |
| 40 , SVGURIReference(this) | 40 , SVGURIReference(this) |
| 41 { | 41 { |
| 42 ScriptWrappable::init(this); | 42 ScriptWrappable::init(this); |
| 43 registerAnimatedPropertiesForSVGMPathElement(); | |
| 44 } | 43 } |
| 45 | 44 |
| 46 PassRefPtr<SVGMPathElement> SVGMPathElement::create(Document& document) | 45 PassRefPtr<SVGMPathElement> SVGMPathElement::create(Document& document) |
| 47 { | 46 { |
| 48 return adoptRef(new SVGMPathElement(document)); | 47 return adoptRef(new SVGMPathElement(document)); |
| 49 } | 48 } |
| 50 | 49 |
| 51 SVGMPathElement::~SVGMPathElement() | 50 SVGMPathElement::~SVGMPathElement() |
| 52 { | 51 { |
| 53 clearResourceReferences(); | 52 clearResourceReferences(); |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 notifyParentOfPathChange(parentNode()); | 152 notifyParentOfPathChange(parentNode()); |
| 154 } | 153 } |
| 155 | 154 |
| 156 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent) | 155 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent) |
| 157 { | 156 { |
| 158 if (parent && parent->hasTagName(SVGNames::animateMotionTag)) | 157 if (parent && parent->hasTagName(SVGNames::animateMotionTag)) |
| 159 toSVGAnimateMotionElement(parent)->updateAnimationPath(); | 158 toSVGAnimateMotionElement(parent)->updateAnimationPath(); |
| 160 } | 159 } |
| 161 | 160 |
| 162 } // namespace WebCore | 161 } // namespace WebCore |
| OLD | NEW |