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 12 matching lines...) Expand all Loading... |
23 | 23 |
24 #include "XLinkNames.h" | 24 #include "XLinkNames.h" |
25 #include "core/dom/Document.h" | 25 #include "core/dom/Document.h" |
26 #include "core/svg/SVGAnimateMotionElement.h" | 26 #include "core/svg/SVGAnimateMotionElement.h" |
27 #include "core/svg/SVGDocumentExtensions.h" | 27 #include "core/svg/SVGDocumentExtensions.h" |
28 #include "core/svg/SVGElementInstance.h" | 28 #include "core/svg/SVGElementInstance.h" |
29 #include "core/svg/SVGPathElement.h" | 29 #include "core/svg/SVGPathElement.h" |
30 | 30 |
31 namespace WebCore { | 31 namespace WebCore { |
32 | 32 |
33 // Animated property definitions | |
34 | |
35 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGMPathElement) | |
36 END_REGISTER_ANIMATED_PROPERTIES | |
37 | |
38 inline SVGMPathElement::SVGMPathElement(Document& document) | 33 inline SVGMPathElement::SVGMPathElement(Document& document) |
39 : SVGElement(SVGNames::mpathTag, document) | 34 : SVGElement(SVGNames::mpathTag, document) |
40 , SVGURIReference(this) | 35 , SVGURIReference(this) |
41 { | 36 { |
42 ScriptWrappable::init(this); | 37 ScriptWrappable::init(this); |
43 } | 38 } |
44 | 39 |
45 PassRefPtr<SVGMPathElement> SVGMPathElement::create(Document& document) | 40 PassRefPtr<SVGMPathElement> SVGMPathElement::create(Document& document) |
46 { | 41 { |
47 return adoptRef(new SVGMPathElement(document)); | 42 return adoptRef(new SVGMPathElement(document)); |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 notifyParentOfPathChange(parentNode()); | 147 notifyParentOfPathChange(parentNode()); |
153 } | 148 } |
154 | 149 |
155 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent) | 150 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent) |
156 { | 151 { |
157 if (parent && parent->hasTagName(SVGNames::animateMotionTag)) | 152 if (parent && parent->hasTagName(SVGNames::animateMotionTag)) |
158 toSVGAnimateMotionElement(parent)->updateAnimationPath(); | 153 toSVGAnimateMotionElement(parent)->updateAnimationPath(); |
159 } | 154 } |
160 | 155 |
161 } // namespace WebCore | 156 } // namespace WebCore |
OLD | NEW |