| 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 17 matching lines...) Expand all Loading... |
| 28 #include "core/svg/SVGPathElement.h" | 28 #include "core/svg/SVGPathElement.h" |
| 29 | 29 |
| 30 namespace blink { | 30 namespace blink { |
| 31 | 31 |
| 32 inline 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 } | 36 } |
| 37 | 37 |
| 38 void SVGMPathElement::trace(Visitor* visitor) |
| 39 { |
| 40 SVGElement::trace(visitor); |
| 41 SVGURIReference::trace(visitor); |
| 42 } |
| 43 |
| 38 DEFINE_NODE_FACTORY(SVGMPathElement) | 44 DEFINE_NODE_FACTORY(SVGMPathElement) |
| 39 | 45 |
| 40 SVGMPathElement::~SVGMPathElement() | 46 SVGMPathElement::~SVGMPathElement() |
| 41 { | 47 { |
| 42 #if !ENABLE(OILPAN) | 48 #if !ENABLE(OILPAN) |
| 43 clearResourceReferences(); | 49 clearResourceReferences(); |
| 44 #endif | 50 #endif |
| 45 } | 51 } |
| 46 | 52 |
| 47 void SVGMPathElement::buildPendingResource() | 53 void SVGMPathElement::buildPendingResource() |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 notifyParentOfPathChange(parentNode()); | 124 notifyParentOfPathChange(parentNode()); |
| 119 } | 125 } |
| 120 | 126 |
| 121 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent) | 127 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent) |
| 122 { | 128 { |
| 123 if (isSVGAnimateMotionElement(parent)) | 129 if (isSVGAnimateMotionElement(parent)) |
| 124 toSVGAnimateMotionElement(parent)->updateAnimationPath(); | 130 toSVGAnimateMotionElement(parent)->updateAnimationPath(); |
| 125 } | 131 } |
| 126 | 132 |
| 127 } // namespace blink | 133 } // namespace blink |
| OLD | NEW |