| 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 30 matching lines...) Expand all Loading... |
| 41 namespace WebCore { | 41 namespace WebCore { |
| 42 | 42 |
| 43 using namespace SVGNames; | 43 using namespace SVGNames; |
| 44 | 44 |
| 45 inline SVGAnimateMotionElement::SVGAnimateMotionElement(const QualifiedName& tag
Name, Document* document) | 45 inline SVGAnimateMotionElement::SVGAnimateMotionElement(const QualifiedName& tag
Name, Document* document) |
| 46 : SVGAnimationElement(tagName, document) | 46 : SVGAnimationElement(tagName, document) |
| 47 , m_hasToPointAtEndOfDuration(false) | 47 , m_hasToPointAtEndOfDuration(false) |
| 48 { | 48 { |
| 49 setCalcMode(CalcModePaced); | 49 setCalcMode(CalcModePaced); |
| 50 ASSERT(hasTagName(animateMotionTag)); | 50 ASSERT(hasTagName(animateMotionTag)); |
| 51 ScriptWrappable::init(this); |
| 51 } | 52 } |
| 52 | 53 |
| 53 PassRefPtr<SVGAnimateMotionElement> SVGAnimateMotionElement::create(const Qualif
iedName& tagName, Document* document) | 54 PassRefPtr<SVGAnimateMotionElement> SVGAnimateMotionElement::create(const Qualif
iedName& tagName, Document* document) |
| 54 { | 55 { |
| 55 return adoptRef(new SVGAnimateMotionElement(tagName, document)); | 56 return adoptRef(new SVGAnimateMotionElement(tagName, document)); |
| 56 } | 57 } |
| 57 | 58 |
| 58 bool SVGAnimateMotionElement::hasValidAttributeType() | 59 bool SVGAnimateMotionElement::hasValidAttributeType() |
| 59 { | 60 { |
| 60 SVGElement* targetElement = this->targetElement(); | 61 SVGElement* targetElement = this->targetElement(); |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 void SVGAnimateMotionElement::updateAnimationMode() | 329 void SVGAnimateMotionElement::updateAnimationMode() |
| 329 { | 330 { |
| 330 if (!m_animationPath.isEmpty()) | 331 if (!m_animationPath.isEmpty()) |
| 331 setAnimationMode(PathAnimation); | 332 setAnimationMode(PathAnimation); |
| 332 else | 333 else |
| 333 SVGAnimationElement::updateAnimationMode(); | 334 SVGAnimationElement::updateAnimationMode(); |
| 334 } | 335 } |
| 335 | 336 |
| 336 } | 337 } |
| 337 #endif // ENABLE(SVG) | 338 #endif // ENABLE(SVG) |
| OLD | NEW |