| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 clearResourceReferences(); | 103 clearResourceReferences(); |
| 104 } | 104 } |
| 105 | 105 |
| 106 bool SVGMPathElement::isSupportedAttribute(const QualifiedName& attrName) | 106 bool SVGMPathElement::isSupportedAttribute(const QualifiedName& attrName) |
| 107 { | 107 { |
| 108 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 108 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
| 109 if (supportedAttributes.isEmpty()) { | 109 if (supportedAttributes.isEmpty()) { |
| 110 SVGURIReference::addSupportedAttributes(supportedAttributes); | 110 SVGURIReference::addSupportedAttributes(supportedAttributes); |
| 111 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes
); | 111 SVGExternalResourcesRequired::addSupportedAttributes(supportedAttributes
); |
| 112 } | 112 } |
| 113 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato
r>(attrName); | 113 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName); |
| 114 } | 114 } |
| 115 | 115 |
| 116 void SVGMPathElement::parseAttribute(const QualifiedName& name, const AtomicStri
ng& value) | 116 void SVGMPathElement::parseAttribute(const QualifiedName& name, const AtomicStri
ng& value) |
| 117 { | 117 { |
| 118 if (!isSupportedAttribute(name)) { | 118 if (!isSupportedAttribute(name)) { |
| 119 SVGElement::parseAttribute(name, value); | 119 SVGElement::parseAttribute(name, value); |
| 120 return; | 120 return; |
| 121 } | 121 } |
| 122 | 122 |
| 123 if (SVGURIReference::parseAttribute(name, value)) | 123 if (SVGURIReference::parseAttribute(name, value)) |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 notifyParentOfPathChange(parentNode()); | 161 notifyParentOfPathChange(parentNode()); |
| 162 } | 162 } |
| 163 | 163 |
| 164 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent) | 164 void SVGMPathElement::notifyParentOfPathChange(ContainerNode* parent) |
| 165 { | 165 { |
| 166 if (parent && parent->hasTagName(SVGNames::animateMotionTag)) | 166 if (parent && parent->hasTagName(SVGNames::animateMotionTag)) |
| 167 static_cast<SVGAnimateMotionElement*>(parent)->updateAnimationPath(); | 167 static_cast<SVGAnimateMotionElement*>(parent)->updateAnimationPath(); |
| 168 } | 168 } |
| 169 | 169 |
| 170 } // namespace WebCore | 170 } // namespace WebCore |
| OLD | NEW |