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 21 matching lines...) Expand all Loading... |
32 #include "core/svg/SVGPathElement.h" | 32 #include "core/svg/SVGPathElement.h" |
33 #include "core/svg/SVGPathUtilities.h" | 33 #include "core/svg/SVGPathUtilities.h" |
34 #include "platform/transforms/AffineTransform.h" | 34 #include "platform/transforms/AffineTransform.h" |
35 #include "wtf/MathExtras.h" | 35 #include "wtf/MathExtras.h" |
36 #include "wtf/StdLibExtras.h" | 36 #include "wtf/StdLibExtras.h" |
37 | 37 |
38 namespace WebCore { | 38 namespace WebCore { |
39 | 39 |
40 using namespace SVGNames; | 40 using namespace SVGNames; |
41 | 41 |
42 SVGAnimateMotionElement::SVGAnimateMotionElement(Document& document) | 42 inline SVGAnimateMotionElement::SVGAnimateMotionElement(Document& document) |
43 : SVGAnimationElement(animateMotionTag, document) | 43 : SVGAnimationElement(animateMotionTag, document) |
44 , m_hasToPointAtEndOfDuration(false) | 44 , m_hasToPointAtEndOfDuration(false) |
45 { | 45 { |
46 setCalcMode(CalcModePaced); | 46 setCalcMode(CalcModePaced); |
47 ScriptWrappable::init(this); | 47 ScriptWrappable::init(this); |
48 } | 48 } |
49 | 49 |
| 50 DEFINE_NODE_FACTORY(SVGAnimateMotionElement) |
| 51 |
50 SVGAnimateMotionElement::~SVGAnimateMotionElement() | 52 SVGAnimateMotionElement::~SVGAnimateMotionElement() |
51 { | 53 { |
52 // FIXME: Oilpan: We should not comment this out and this should be moved to
|removeFrom| equivalent. | 54 // FIXME: Oilpan: We should not comment this out and this should be moved to
|removeFrom| equivalent. |
53 #if !ENABLE(OILPAN) | 55 #if !ENABLE(OILPAN) |
54 if (targetElement()) | 56 if (targetElement()) |
55 clearAnimatedType(targetElement()); | 57 clearAnimatedType(targetElement()); |
56 #endif | 58 #endif |
57 } | 59 } |
58 | 60 |
59 bool SVGAnimateMotionElement::hasValidAttributeType() | 61 bool SVGAnimateMotionElement::hasValidAttributeType() |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 | 338 |
337 void SVGAnimateMotionElement::updateAnimationMode() | 339 void SVGAnimateMotionElement::updateAnimationMode() |
338 { | 340 { |
339 if (!m_animationPath.isEmpty()) | 341 if (!m_animationPath.isEmpty()) |
340 setAnimationMode(PathAnimation); | 342 setAnimationMode(PathAnimation); |
341 else | 343 else |
342 SVGAnimationElement::updateAnimationMode(); | 344 SVGAnimationElement::updateAnimationMode(); |
343 } | 345 } |
344 | 346 |
345 } | 347 } |
OLD | NEW |