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 11 matching lines...) Expand all Loading... |
22 #include "core/svg/SVGMPathElement.h" | 22 #include "core/svg/SVGMPathElement.h" |
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/SVGPathElement.h" | 28 #include "core/svg/SVGPathElement.h" |
29 | 29 |
30 namespace WebCore { | 30 namespace WebCore { |
31 | 31 |
32 SVGMPathElement::SVGMPathElement(Document& document) | 32 inline SVGMPathElement::SVGMPathElement(Document& document) |
33 : SVGElement(SVGNames::mpathTag, document) | 33 : SVGElement(SVGNames::mpathTag, document) |
34 , SVGURIReference(this) | 34 , SVGURIReference(this) |
35 { | 35 { |
36 ScriptWrappable::init(this); | 36 ScriptWrappable::init(this); |
37 } | 37 } |
38 | 38 |
| 39 DEFINE_NODE_FACTORY(SVGMPathElement) |
| 40 |
39 SVGMPathElement::~SVGMPathElement() | 41 SVGMPathElement::~SVGMPathElement() |
40 { | 42 { |
41 #if !ENABLE(OILPAN) | 43 #if !ENABLE(OILPAN) |
42 clearResourceReferences(); | 44 clearResourceReferences(); |
43 #endif | 45 #endif |
44 } | 46 } |
45 | 47 |
46 void SVGMPathElement::buildPendingResource() | 48 void SVGMPathElement::buildPendingResource() |
47 { | 49 { |
48 clearResourceReferences(); | 50 clearResourceReferences(); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 notifyParentOfPathChange(parentNode()); | 143 notifyParentOfPathChange(parentNode()); |
142 } | 144 } |
143 | 145 |
144 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent) | 146 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent) |
145 { | 147 { |
146 if (isSVGAnimateMotionElement(parent)) | 148 if (isSVGAnimateMotionElement(parent)) |
147 toSVGAnimateMotionElement(parent)->updateAnimationPath(); | 149 toSVGAnimateMotionElement(parent)->updateAnimationPath(); |
148 } | 150 } |
149 | 151 |
150 } // namespace WebCore | 152 } // namespace WebCore |
OLD | NEW |