| 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 22 matching lines...) Expand all Loading... |
| 33 #include "core/svg/SVGParserUtilities.h" | 33 #include "core/svg/SVGParserUtilities.h" |
| 34 #include "core/svg/SVGPathElement.h" | 34 #include "core/svg/SVGPathElement.h" |
| 35 #include "core/svg/SVGPathUtilities.h" | 35 #include "core/svg/SVGPathUtilities.h" |
| 36 #include "wtf/MathExtras.h" | 36 #include "wtf/MathExtras.h" |
| 37 #include "wtf/StdLibExtras.h" | 37 #include "wtf/StdLibExtras.h" |
| 38 | 38 |
| 39 namespace WebCore { | 39 namespace WebCore { |
| 40 | 40 |
| 41 using namespace SVGNames; | 41 using namespace SVGNames; |
| 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 PassRefPtr<SVGAnimateMotionElement> SVGAnimateMotionElement::create(const Qualif
iedName& tagName, Document* document) | 52 PassRefPtr<SVGAnimateMotionElement> SVGAnimateMotionElement::create(const Qualif
iedName& tagName, Document& document) |
| 53 { | 53 { |
| 54 return adoptRef(new SVGAnimateMotionElement(tagName, document)); | 54 return adoptRef(new SVGAnimateMotionElement(tagName, document)); |
| 55 } | 55 } |
| 56 | 56 |
| 57 bool SVGAnimateMotionElement::hasValidAttributeType() | 57 bool SVGAnimateMotionElement::hasValidAttributeType() |
| 58 { | 58 { |
| 59 SVGElement* targetElement = this->targetElement(); | 59 SVGElement* targetElement = this->targetElement(); |
| 60 if (!targetElement) | 60 if (!targetElement) |
| 61 return false; | 61 return false; |
| 62 | 62 |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 | 341 |
| 342 void SVGAnimateMotionElement::updateAnimationMode() | 342 void SVGAnimateMotionElement::updateAnimationMode() |
| 343 { | 343 { |
| 344 if (!m_animationPath.isEmpty()) | 344 if (!m_animationPath.isEmpty()) |
| 345 setAnimationMode(PathAnimation); | 345 setAnimationMode(PathAnimation); |
| 346 else | 346 else |
| 347 SVGAnimationElement::updateAnimationMode(); | 347 SVGAnimationElement::updateAnimationMode(); |
| 348 } | 348 } |
| 349 | 349 |
| 350 } | 350 } |
| OLD | NEW |