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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 inline SVGAnimateMotionElement::SVGAnimateMotionElement(Document& document) | 43 inline SVGAnimateMotionElement::SVGAnimateMotionElement(Document& document) |
44 : SVGAnimationElement(animateMotionTag, document) | 44 : SVGAnimationElement(animateMotionTag, document) |
45 , m_hasToPointAtEndOfDuration(false) | 45 , m_hasToPointAtEndOfDuration(false) |
46 { | 46 { |
47 setCalcMode(CalcModePaced); | 47 setCalcMode(CalcModePaced); |
48 ScriptWrappable::init(this); | 48 ScriptWrappable::init(this); |
49 } | 49 } |
50 | 50 |
51 SVGAnimateMotionElement::~SVGAnimateMotionElement() | 51 SVGAnimateMotionElement::~SVGAnimateMotionElement() |
52 { | 52 { |
| 53 #if !ENABLE(OILPAN) |
53 if (targetElement()) | 54 if (targetElement()) |
54 clearAnimatedType(targetElement()); | 55 clearAnimatedType(targetElement()); |
| 56 #endif |
55 } | 57 } |
56 | 58 |
57 PassRefPtr<SVGAnimateMotionElement> SVGAnimateMotionElement::create(Document& do
cument) | 59 PassRefPtr<SVGAnimateMotionElement> SVGAnimateMotionElement::create(Document& do
cument) |
58 { | 60 { |
59 return adoptRef(new SVGAnimateMotionElement(document)); | 61 return adoptRef(new SVGAnimateMotionElement(document)); |
60 } | 62 } |
61 | 63 |
62 bool SVGAnimateMotionElement::hasValidAttributeType() | 64 bool SVGAnimateMotionElement::hasValidAttributeType() |
63 { | 65 { |
64 SVGElement* targetElement = this->targetElement(); | 66 SVGElement* targetElement = this->targetElement(); |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 | 341 |
340 void SVGAnimateMotionElement::updateAnimationMode() | 342 void SVGAnimateMotionElement::updateAnimationMode() |
341 { | 343 { |
342 if (!m_animationPath.isEmpty()) | 344 if (!m_animationPath.isEmpty()) |
343 setAnimationMode(PathAnimation); | 345 setAnimationMode(PathAnimation); |
344 else | 346 else |
345 SVGAnimationElement::updateAnimationMode(); | 347 SVGAnimationElement::updateAnimationMode(); |
346 } | 348 } |
347 | 349 |
348 } | 350 } |
OLD | NEW |