OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
3 * Copyright (C) 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2007 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2008 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 { | 90 { |
91 // AnimateMotion does not use attributeName so it is always valid. | 91 // AnimateMotion does not use attributeName so it is always valid. |
92 return true; | 92 return true; |
93 } | 93 } |
94 | 94 |
95 bool SVGAnimateMotionElement::isSupportedAttribute(const QualifiedName& attrName
) | 95 bool SVGAnimateMotionElement::isSupportedAttribute(const QualifiedName& attrName
) |
96 { | 96 { |
97 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); | 97 DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, supportedAttributes, ()); |
98 if (supportedAttributes.isEmpty()) | 98 if (supportedAttributes.isEmpty()) |
99 supportedAttributes.add(SVGNames::pathAttr); | 99 supportedAttributes.add(SVGNames::pathAttr); |
100 return supportedAttributes.contains<QualifiedName, SVGAttributeHashTranslato
r>(attrName); | 100 return supportedAttributes.contains<SVGAttributeHashTranslator>(attrName); |
101 } | 101 } |
102 | 102 |
103 void SVGAnimateMotionElement::parseAttribute(const QualifiedName& name, const At
omicString& value) | 103 void SVGAnimateMotionElement::parseAttribute(const QualifiedName& name, const At
omicString& value) |
104 { | 104 { |
105 if (!isSupportedAttribute(name)) { | 105 if (!isSupportedAttribute(name)) { |
106 SVGAnimationElement::parseAttribute(name, value); | 106 SVGAnimationElement::parseAttribute(name, value); |
107 return; | 107 return; |
108 } | 108 } |
109 | 109 |
110 if (name == SVGNames::pathAttr) { | 110 if (name == SVGNames::pathAttr) { |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 | 326 |
327 void SVGAnimateMotionElement::updateAnimationMode() | 327 void SVGAnimateMotionElement::updateAnimationMode() |
328 { | 328 { |
329 if (!m_animationPath.isEmpty()) | 329 if (!m_animationPath.isEmpty()) |
330 setAnimationMode(PathAnimation); | 330 setAnimationMode(PathAnimation); |
331 else | 331 else |
332 SVGAnimationElement::updateAnimationMode(); | 332 SVGAnimationElement::updateAnimationMode(); |
333 } | 333 } |
334 | 334 |
335 } | 335 } |
OLD | NEW |