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 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "core/page/UseCounter.h" | 27 #include "core/page/UseCounter.h" |
28 #include "core/rendering/svg/RenderSVGTransformableContainer.h" | 28 #include "core/rendering/svg/RenderSVGTransformableContainer.h" |
29 | 29 |
30 namespace WebCore { | 30 namespace WebCore { |
31 | 31 |
32 // Animated property definitions | 32 // Animated property definitions |
33 DEFINE_ANIMATED_BOOLEAN(SVGSwitchElement, SVGNames::externalResourcesRequiredAtt
r, ExternalResourcesRequired, externalResourcesRequired) | 33 DEFINE_ANIMATED_BOOLEAN(SVGSwitchElement, SVGNames::externalResourcesRequiredAtt
r, ExternalResourcesRequired, externalResourcesRequired) |
34 | 34 |
35 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGSwitchElement) | 35 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGSwitchElement) |
36 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) | 36 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) |
37 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGStyledTransformableElement) | 37 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement) |
38 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTests) | |
39 END_REGISTER_ANIMATED_PROPERTIES | 38 END_REGISTER_ANIMATED_PROPERTIES |
40 | 39 |
41 inline SVGSwitchElement::SVGSwitchElement(const QualifiedName& tagName, Document
* document) | 40 inline SVGSwitchElement::SVGSwitchElement(const QualifiedName& tagName, Document
* document) |
42 : SVGStyledTransformableElement(tagName, document) | 41 : SVGGraphicsElement(tagName, document) |
43 { | 42 { |
44 ASSERT(hasTagName(SVGNames::switchTag)); | 43 ASSERT(hasTagName(SVGNames::switchTag)); |
45 ScriptWrappable::init(this); | 44 ScriptWrappable::init(this); |
46 registerAnimatedPropertiesForSVGSwitchElement(); | 45 registerAnimatedPropertiesForSVGSwitchElement(); |
47 | 46 |
48 UseCounter::count(document, UseCounter::SVGSwitchElement); | 47 UseCounter::count(document, UseCounter::SVGSwitchElement); |
49 } | 48 } |
50 | 49 |
51 PassRefPtr<SVGSwitchElement> SVGSwitchElement::create(const QualifiedName& tagNa
me, Document* document) | 50 PassRefPtr<SVGSwitchElement> SVGSwitchElement::create(const QualifiedName& tagNa
me, Document* document) |
52 { | 51 { |
(...skipping 17 matching lines...) Expand all Loading... |
70 | 69 |
71 return false; | 70 return false; |
72 } | 71 } |
73 | 72 |
74 RenderObject* SVGSwitchElement::createRenderer(RenderStyle*) | 73 RenderObject* SVGSwitchElement::createRenderer(RenderStyle*) |
75 { | 74 { |
76 return new (document()->renderArena()) RenderSVGTransformableContainer(this)
; | 75 return new (document()->renderArena()) RenderSVGTransformableContainer(this)
; |
77 } | 76 } |
78 | 77 |
79 } | 78 } |
OLD | NEW |