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 20 matching lines...) Expand all Loading... |
31 namespace WebCore { | 31 namespace WebCore { |
32 | 32 |
33 class SVGSwitchElement : public SVGStyledTransformableElement, | 33 class SVGSwitchElement : public SVGStyledTransformableElement, |
34 public SVGTests, | 34 public SVGTests, |
35 public SVGLangSpace, | 35 public SVGLangSpace, |
36 public SVGExternalResourcesRequired { | 36 public SVGExternalResourcesRequired { |
37 DEFINE_SELF_HANDLE(SVGSwitchElement) | 37 DEFINE_SELF_HANDLE(SVGSwitchElement) |
38 public: | 38 public: |
39 static PassRefPtr<SVGSwitchElement> create(const QualifiedName&, const Handl
e<Document>&); | 39 static PassRefPtr<SVGSwitchElement> create(const QualifiedName&, const Handl
e<Document>&); |
40 | 40 |
| 41 virtual void accept(Visitor* visitor) const OVERRIDE { SVGStyledTransformabl
eElement::accept(visitor); } |
| 42 |
41 private: | 43 private: |
42 SVGSwitchElement(const QualifiedName&, const Handle<Document>&); | 44 SVGSwitchElement(const QualifiedName&, const Handle<Document>&); |
43 | 45 |
44 virtual bool isValid() const { return SVGTests::isValid(); } | 46 virtual bool isValid() const { return SVGTests::isValid(); } |
45 virtual bool supportsFocus() const { return true; } | 47 virtual bool supportsFocus() const { return true; } |
46 | 48 |
47 virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const; | 49 virtual bool childShouldCreateRenderer(const NodeRenderingContext&) const; |
48 | 50 |
49 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); | 51 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); |
50 | 52 |
51 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGSwitchElement) | 53 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGSwitchElement) |
52 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) | 54 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) |
53 END_DECLARE_ANIMATED_PROPERTIES | 55 END_DECLARE_ANIMATED_PROPERTIES |
54 | 56 |
55 // SVGTests | 57 // SVGTests |
56 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe
atures(this); } | 58 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe
atures(this); } |
57 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired
Extensions(this); } | 59 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired
Extensions(this); } |
58 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua
ge(this); } | 60 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua
ge(this); } |
59 }; | 61 }; |
60 | 62 |
61 } // namespace WebCore | 63 } // namespace WebCore |
62 | 64 |
63 #endif // ENABLE(SVG) | 65 #endif // ENABLE(SVG) |
64 #endif | 66 #endif |
OLD | NEW |