| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 return adoptRef(new SVGAnimateMotionElement(tagName, document)); | 53 return adoptRef(new SVGAnimateMotionElement(tagName, document)); |
| 54 } | 54 } |
| 55 | 55 |
| 56 bool SVGAnimateMotionElement::hasValidAttributeType() | 56 bool SVGAnimateMotionElement::hasValidAttributeType() |
| 57 { | 57 { |
| 58 SVGElement* targetElement = this->targetElement(); | 58 SVGElement* targetElement = this->targetElement(); |
| 59 if (!targetElement) | 59 if (!targetElement) |
| 60 return false; | 60 return false; |
| 61 | 61 |
| 62 // We don't have a special attribute name to verify the animation type. Chec
k the element name instead. | 62 // We don't have a special attribute name to verify the animation type. Chec
k the element name instead. |
| 63 if (!targetElement->isStyledTransformable() && !targetElement->hasTagName(SV
GNames::textTag)) | 63 if (!targetElement->isSVGGraphicsElement() && !targetElement->hasTagName(SVG
Names::textTag)) |
| 64 return false; | 64 return false; |
| 65 // Spec: SVG 1.1 section 19.2.15 | 65 // Spec: SVG 1.1 section 19.2.15 |
| 66 // FIXME: svgTag is missing. Needs to be checked, if transforming <svg> coul
d cause problems. | 66 // FIXME: svgTag is missing. Needs to be checked, if transforming <svg> coul
d cause problems. |
| 67 if (targetElement->hasTagName(gTag) | 67 if (targetElement->hasTagName(gTag) |
| 68 || targetElement->hasTagName(defsTag) | 68 || targetElement->hasTagName(defsTag) |
| 69 || targetElement->hasTagName(useTag) | 69 || targetElement->hasTagName(useTag) |
| 70 || targetElement->hasTagName(SVGNames::imageTag) | 70 || targetElement->hasTagName(SVGNames::imageTag) |
| 71 || targetElement->hasTagName(switchTag) | 71 || targetElement->hasTagName(switchTag) |
| 72 || targetElement->hasTagName(pathTag) | 72 || targetElement->hasTagName(pathTag) |
| 73 || targetElement->hasTagName(rectTag) | 73 || targetElement->hasTagName(rectTag) |
| (...skipping 252 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 |