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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 reportAttributeParsingError(parseError, name, value); | 119 reportAttributeParsingError(parseError, name, value); |
120 } | 120 } |
121 | 121 |
122 void SVGMPathElement::svgAttributeChanged(const QualifiedName& attrName) | 122 void SVGMPathElement::svgAttributeChanged(const QualifiedName& attrName) |
123 { | 123 { |
124 if (!isSupportedAttribute(attrName)) { | 124 if (!isSupportedAttribute(attrName)) { |
125 SVGElement::svgAttributeChanged(attrName); | 125 SVGElement::svgAttributeChanged(attrName); |
126 return; | 126 return; |
127 } | 127 } |
128 | 128 |
129 SVGElementInstance::InvalidationGuard invalidationGuard(this); | 129 SVGElement::InvalidationGuard invalidationGuard(this); |
130 | 130 |
131 if (SVGURIReference::isKnownAttribute(attrName)) { | 131 if (SVGURIReference::isKnownAttribute(attrName)) { |
132 buildPendingResource(); | 132 buildPendingResource(); |
133 return; | 133 return; |
134 } | 134 } |
135 | 135 |
136 ASSERT_NOT_REACHED(); | 136 ASSERT_NOT_REACHED(); |
137 } | 137 } |
138 | 138 |
139 SVGPathElement* SVGMPathElement::pathElement() | 139 SVGPathElement* SVGMPathElement::pathElement() |
140 { | 140 { |
141 Element* target = targetElementFromIRIString(hrefString(), treeScope()); | 141 Element* target = targetElementFromIRIString(hrefString(), treeScope()); |
142 return isSVGPathElement(target) ? toSVGPathElement(target) : 0; | 142 return isSVGPathElement(target) ? toSVGPathElement(target) : 0; |
143 } | 143 } |
144 | 144 |
145 void SVGMPathElement::targetPathChanged() | 145 void SVGMPathElement::targetPathChanged() |
146 { | 146 { |
147 notifyParentOfPathChange(parentNode()); | 147 notifyParentOfPathChange(parentNode()); |
148 } | 148 } |
149 | 149 |
150 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent) | 150 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent) |
151 { | 151 { |
152 if (isSVGAnimateMotionElement(parent)) | 152 if (isSVGAnimateMotionElement(parent)) |
153 toSVGAnimateMotionElement(parent)->updateAnimationPath(); | 153 toSVGAnimateMotionElement(parent)->updateAnimationPath(); |
154 } | 154 } |
155 | 155 |
156 } // namespace WebCore | 156 } // namespace WebCore |
OLD | NEW |