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 11 matching lines...) Expand all Loading... |
22 | 22 |
23 #include "config.h" | 23 #include "config.h" |
24 | 24 |
25 #include "core/svg/SVGAnimateElement.h" | 25 #include "core/svg/SVGAnimateElement.h" |
26 | 26 |
27 #include "CSSPropertyNames.h" | 27 #include "CSSPropertyNames.h" |
28 #include "SVGNames.h" | 28 #include "SVGNames.h" |
29 #include "core/css/CSSParser.h" | 29 #include "core/css/CSSParser.h" |
30 #include "core/css/StylePropertySet.h" | 30 #include "core/css/StylePropertySet.h" |
31 #include "core/dom/QualifiedName.h" | 31 #include "core/dom/QualifiedName.h" |
32 #include "core/rendering/RenderObject.h" | |
33 #include "core/svg/SVGAnimatorFactory.h" | 32 #include "core/svg/SVGAnimatorFactory.h" |
34 #include "core/svg/SVGStyledElement.h" | |
35 | 33 |
36 namespace WebCore { | 34 namespace WebCore { |
37 | 35 |
38 SVGAnimateElement::SVGAnimateElement(const QualifiedName& tagName, Document* doc
ument) | 36 SVGAnimateElement::SVGAnimateElement(const QualifiedName& tagName, Document* doc
ument) |
39 : SVGAnimationElement(tagName, document) | 37 : SVGAnimationElement(tagName, document) |
40 , m_animatedPropertyType(AnimatedString) | 38 , m_animatedPropertyType(AnimatedString) |
41 { | 39 { |
42 ASSERT(hasTagName(SVGNames::animateTag) || hasTagName(SVGNames::setTag) || h
asTagName(SVGNames::animateColorTag) || hasTagName(SVGNames::animateTransformTag
)); | 40 ASSERT(hasTagName(SVGNames::animateTag) || hasTagName(SVGNames::setTag) || h
asTagName(SVGNames::animateColorTag) || hasTagName(SVGNames::animateTransformTag
)); |
43 ScriptWrappable::init(this); | 41 ScriptWrappable::init(this); |
44 } | 42 } |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 | 419 |
422 SVGAnimatedTypeAnimator* SVGAnimateElement::ensureAnimator() | 420 SVGAnimatedTypeAnimator* SVGAnimateElement::ensureAnimator() |
423 { | 421 { |
424 if (!m_animator) | 422 if (!m_animator) |
425 m_animator = SVGAnimatorFactory::create(this, targetElement(), m_animate
dPropertyType); | 423 m_animator = SVGAnimatorFactory::create(this, targetElement(), m_animate
dPropertyType); |
426 ASSERT(m_animatedPropertyType == m_animator->type()); | 424 ASSERT(m_animatedPropertyType == m_animator->type()); |
427 return m_animator.get(); | 425 return m_animator.get(); |
428 } | 426 } |
429 | 427 |
430 } | 428 } |
OLD | NEW |