| 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 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 using namespace SVGNames; | 41 using namespace SVGNames; |
| 42 | 42 |
| 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); | |
| 49 } | 48 } |
| 50 | 49 |
| 51 DEFINE_NODE_FACTORY(SVGAnimateMotionElement) | 50 DEFINE_NODE_FACTORY(SVGAnimateMotionElement) |
| 52 | 51 |
| 53 SVGAnimateMotionElement::~SVGAnimateMotionElement() | 52 SVGAnimateMotionElement::~SVGAnimateMotionElement() |
| 54 { | 53 { |
| 55 } | 54 } |
| 56 | 55 |
| 57 bool SVGAnimateMotionElement::hasValidAttributeType() | 56 bool SVGAnimateMotionElement::hasValidAttributeType() |
| 58 { | 57 { |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 | 320 |
| 322 void SVGAnimateMotionElement::updateAnimationMode() | 321 void SVGAnimateMotionElement::updateAnimationMode() |
| 323 { | 322 { |
| 324 if (!m_animationPath.isEmpty()) | 323 if (!m_animationPath.isEmpty()) |
| 325 setAnimationMode(PathAnimation); | 324 setAnimationMode(PathAnimation); |
| 326 else | 325 else |
| 327 SVGAnimationElement::updateAnimationMode(); | 326 SVGAnimationElement::updateAnimationMode(); |
| 328 } | 327 } |
| 329 | 328 |
| 330 } | 329 } |
| OLD | NEW |