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 10 matching lines...) Expand all Loading... |
21 #include "config.h" | 21 #include "config.h" |
22 | 22 |
23 #include "core/svg/SVGDefsElement.h" | 23 #include "core/svg/SVGDefsElement.h" |
24 | 24 |
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) | |
32 | 31 |
33 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGDefsElement) | 32 BEGIN_REGISTER_ANIMATED_PROPERTIES(SVGDefsElement) |
34 REGISTER_LOCAL_ANIMATED_PROPERTY(externalResourcesRequired) | |
35 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement) | 33 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement) |
36 END_REGISTER_ANIMATED_PROPERTIES | 34 END_REGISTER_ANIMATED_PROPERTIES |
37 | 35 |
38 inline SVGDefsElement::SVGDefsElement(const QualifiedName& tagName, Document& do
cument) | 36 inline SVGDefsElement::SVGDefsElement(const QualifiedName& tagName, Document& do
cument) |
39 : SVGGraphicsElement(tagName, document) | 37 : SVGGraphicsElement(tagName, document) |
40 { | 38 { |
41 ASSERT(hasTagName(SVGNames::defsTag)); | 39 ASSERT(hasTagName(SVGNames::defsTag)); |
42 ScriptWrappable::init(this); | 40 ScriptWrappable::init(this); |
43 registerAnimatedPropertiesForSVGDefsElement(); | 41 registerAnimatedPropertiesForSVGDefsElement(); |
44 } | 42 } |
45 | 43 |
46 PassRefPtr<SVGDefsElement> SVGDefsElement::create(const QualifiedName& tagName,
Document& document) | 44 PassRefPtr<SVGDefsElement> SVGDefsElement::create(const QualifiedName& tagName,
Document& document) |
47 { | 45 { |
48 return adoptRef(new SVGDefsElement(tagName, document)); | 46 return adoptRef(new SVGDefsElement(tagName, document)); |
49 } | 47 } |
50 | 48 |
51 bool SVGDefsElement::isValid() const | 49 bool SVGDefsElement::isValid() const |
52 { | 50 { |
53 return SVGTests::isValid(); | 51 return SVGTests::isValid(); |
54 } | 52 } |
55 | 53 |
56 RenderObject* SVGDefsElement::createRenderer(RenderStyle*) | 54 RenderObject* SVGDefsElement::createRenderer(RenderStyle*) |
57 { | 55 { |
58 return new RenderSVGHiddenContainer(this); | 56 return new RenderSVGHiddenContainer(this); |
59 } | 57 } |
60 | 58 |
61 } | 59 } |
OLD | NEW |