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 17 matching lines...) Loading... |
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(SVGGraphicsElement) | 35 REGISTER_PARENT_ANIMATED_PROPERTIES(SVGGraphicsElement) |
36 END_REGISTER_ANIMATED_PROPERTIES | 36 END_REGISTER_ANIMATED_PROPERTIES |
37 | 37 |
38 inline SVGDefsElement::SVGDefsElement(const QualifiedName& tagName, Document* do
cument) | 38 inline SVGDefsElement::SVGDefsElement(const QualifiedName& tagName, Document& do
cument) |
39 : SVGGraphicsElement(tagName, document) | 39 : SVGGraphicsElement(tagName, document) |
40 { | 40 { |
41 ASSERT(hasTagName(SVGNames::defsTag)); | 41 ASSERT(hasTagName(SVGNames::defsTag)); |
42 ScriptWrappable::init(this); | 42 ScriptWrappable::init(this); |
43 registerAnimatedPropertiesForSVGDefsElement(); | 43 registerAnimatedPropertiesForSVGDefsElement(); |
44 } | 44 } |
45 | 45 |
46 PassRefPtr<SVGDefsElement> SVGDefsElement::create(const QualifiedName& tagName,
Document* document) | 46 PassRefPtr<SVGDefsElement> SVGDefsElement::create(const QualifiedName& tagName,
Document& document) |
47 { | 47 { |
48 return adoptRef(new SVGDefsElement(tagName, document)); | 48 return adoptRef(new SVGDefsElement(tagName, document)); |
49 } | 49 } |
50 | 50 |
51 bool SVGDefsElement::isValid() const | 51 bool SVGDefsElement::isValid() const |
52 { | 52 { |
53 return SVGTests::isValid(); | 53 return SVGTests::isValid(); |
54 } | 54 } |
55 | 55 |
56 RenderObject* SVGDefsElement::createRenderer(RenderStyle*) | 56 RenderObject* SVGDefsElement::createRenderer(RenderStyle*) |
57 { | 57 { |
58 return new RenderSVGHiddenContainer(this); | 58 return new RenderSVGHiddenContainer(this); |
59 } | 59 } |
60 | 60 |
61 } | 61 } |
OLD | NEW |