| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 5 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "SVGStyledElement.h" | 34 #include "SVGStyledElement.h" |
| 35 #include "StylePropertySet.h" | 35 #include "StylePropertySet.h" |
| 36 | 36 |
| 37 namespace WebCore { | 37 namespace WebCore { |
| 38 | 38 |
| 39 SVGAnimateElement::SVGAnimateElement(const QualifiedName& tagName, Document* doc
ument) | 39 SVGAnimateElement::SVGAnimateElement(const QualifiedName& tagName, Document* doc
ument) |
| 40 : SVGAnimationElement(tagName, document) | 40 : SVGAnimationElement(tagName, document) |
| 41 , m_animatedPropertyType(AnimatedString) | 41 , m_animatedPropertyType(AnimatedString) |
| 42 { | 42 { |
| 43 ASSERT(hasTagName(SVGNames::animateTag) || hasTagName(SVGNames::setTag) || h
asTagName(SVGNames::animateColorTag) || hasTagName(SVGNames::animateTransformTag
)); | 43 ASSERT(hasTagName(SVGNames::animateTag) || hasTagName(SVGNames::setTag) || h
asTagName(SVGNames::animateColorTag) || hasTagName(SVGNames::animateTransformTag
)); |
| 44 ScriptWrappable::init(this); |
| 44 } | 45 } |
| 45 | 46 |
| 46 PassRefPtr<SVGAnimateElement> SVGAnimateElement::create(const QualifiedName& tag
Name, Document* document) | 47 PassRefPtr<SVGAnimateElement> SVGAnimateElement::create(const QualifiedName& tag
Name, Document* document) |
| 47 { | 48 { |
| 48 return adoptRef(new SVGAnimateElement(tagName, document)); | 49 return adoptRef(new SVGAnimateElement(tagName, document)); |
| 49 } | 50 } |
| 50 | 51 |
| 51 SVGAnimateElement::~SVGAnimateElement() | 52 SVGAnimateElement::~SVGAnimateElement() |
| 52 { | 53 { |
| 53 } | 54 } |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 { | 424 { |
| 424 if (!m_animator) | 425 if (!m_animator) |
| 425 m_animator = SVGAnimatorFactory::create(this, targetElement(), m_animate
dPropertyType); | 426 m_animator = SVGAnimatorFactory::create(this, targetElement(), m_animate
dPropertyType); |
| 426 ASSERT(m_animatedPropertyType == m_animator->type()); | 427 ASSERT(m_animatedPropertyType == m_animator->type()); |
| 427 return m_animator.get(); | 428 return m_animator.get(); |
| 428 } | 429 } |
| 429 | 430 |
| 430 } | 431 } |
| 431 | 432 |
| 432 #endif // ENABLE(SVG) | 433 #endif // ENABLE(SVG) |
| OLD | NEW |