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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 inline SVGAnimateMotionElement::SVGAnimateMotionElement(const QualifiedName& tag
Name, Document& document) | 43 inline SVGAnimateMotionElement::SVGAnimateMotionElement(const QualifiedName& tag
Name, Document& document) |
44 : SVGAnimationElement(tagName, document) | 44 : SVGAnimationElement(tagName, document) |
45 , m_hasToPointAtEndOfDuration(false) | 45 , m_hasToPointAtEndOfDuration(false) |
46 { | 46 { |
47 setCalcMode(CalcModePaced); | 47 setCalcMode(CalcModePaced); |
48 ASSERT(hasTagName(animateMotionTag)); | 48 ASSERT(hasTagName(animateMotionTag)); |
49 ScriptWrappable::init(this); | 49 ScriptWrappable::init(this); |
50 } | 50 } |
51 | 51 |
52 SVGAnimateMotionElement::~SVGAnimateMotionElement() | |
53 { | |
54 if (targetElement()) | |
55 clearAnimatedType(targetElement()); | |
56 } | |
57 | |
58 PassRefPtr<SVGAnimateMotionElement> SVGAnimateMotionElement::create(const Qualif
iedName& tagName, Document& document) | 52 PassRefPtr<SVGAnimateMotionElement> SVGAnimateMotionElement::create(const Qualif
iedName& tagName, Document& document) |
59 { | 53 { |
60 return adoptRef(new SVGAnimateMotionElement(tagName, document)); | 54 return adoptRef(new SVGAnimateMotionElement(tagName, document)); |
61 } | 55 } |
62 | 56 |
63 bool SVGAnimateMotionElement::hasValidAttributeType() | 57 bool SVGAnimateMotionElement::hasValidAttributeType() |
64 { | 58 { |
65 SVGElement* targetElement = this->targetElement(); | 59 SVGElement* targetElement = this->targetElement(); |
66 if (!targetElement) | 60 if (!targetElement) |
67 return false; | 61 return false; |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 | 341 |
348 void SVGAnimateMotionElement::updateAnimationMode() | 342 void SVGAnimateMotionElement::updateAnimationMode() |
349 { | 343 { |
350 if (!m_animationPath.isEmpty()) | 344 if (!m_animationPath.isEmpty()) |
351 setAnimationMode(PathAnimation); | 345 setAnimationMode(PathAnimation); |
352 else | 346 else |
353 SVGAnimationElement::updateAnimationMode(); | 347 SVGAnimationElement::updateAnimationMode(); |
354 } | 348 } |
355 | 349 |
356 } | 350 } |
OLD | NEW |