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 14 matching lines...) Expand all Loading... |
25 #include "SVGNames.h" | 25 #include "SVGNames.h" |
26 #include "core/rendering/svg/RenderSVGHiddenContainer.h" | 26 #include "core/rendering/svg/RenderSVGHiddenContainer.h" |
27 | 27 |
28 namespace WebCore { | 28 namespace WebCore { |
29 | 29 |
30 // Animated property definitions | 30 // Animated property definitions |
31 DEFINE_ANIMATED_BOOLEAN(SVGDefsElement, SVGNames::externalResourcesRequiredAttr,
ExternalResourcesRequired, externalResourcesRequired) | 31 DEFINE_ANIMATED_BOOLEAN(SVGDefsElement, SVGNames::externalResourcesRequiredAttr,
ExternalResourcesRequired, externalResourcesRequired) |
32 | 32 |
33 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGDefsElement) | 33 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGDefsElement) |
34 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) | 34 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) |
35 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGStyledTransformableElement) | 35 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement) |
36 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGTests) | |
37 END_REGISTER_ANIMATED_PROPERTIES | 36 END_REGISTER_ANIMATED_PROPERTIES |
38 | 37 |
39 inline SVGDefsElement::SVGDefsElement(const QualifiedName& tagName, Document* do
cument) | 38 inline SVGDefsElement::SVGDefsElement(const QualifiedName& tagName, Document* do
cument) |
40 : SVGStyledTransformableElement(tagName, document) | 39 : SVGGraphicsElement(tagName, document) |
41 { | 40 { |
42 ASSERT(hasTagName(SVGNames::defsTag)); | 41 ASSERT(hasTagName(SVGNames::defsTag)); |
43 ScriptWrappable::init(this); | 42 ScriptWrappable::init(this); |
44 registerAnimatedPropertiesForSVGDefsElement(); | 43 registerAnimatedPropertiesForSVGDefsElement(); |
45 } | 44 } |
46 | 45 |
47 PassRefPtr<SVGDefsElement> SVGDefsElement::create(const QualifiedName& tagName,
Document* document) | 46 PassRefPtr<SVGDefsElement> SVGDefsElement::create(const QualifiedName& tagName,
Document* document) |
48 { | 47 { |
49 return adoptRef(new SVGDefsElement(tagName, document)); | 48 return adoptRef(new SVGDefsElement(tagName, document)); |
50 } | 49 } |
51 | 50 |
52 bool SVGDefsElement::isValid() const | 51 bool SVGDefsElement::isValid() const |
53 { | 52 { |
54 return SVGTests::isValid(); | 53 return SVGTests::isValid(); |
55 } | 54 } |
56 | 55 |
57 RenderObject* SVGDefsElement::createRenderer(RenderStyle*) | 56 RenderObject* SVGDefsElement::createRenderer(RenderStyle*) |
58 { | 57 { |
59 return new (document()->renderArena()) RenderSVGHiddenContainer(this); | 58 return new (document()->renderArena()) RenderSVGHiddenContainer(this); |
60 } | 59 } |
61 | 60 |
62 } | 61 } |
OLD | NEW |