OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2008 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 18 matching lines...) Expand all Loading... |
29 #include "core/svg/SVGTests.h" | 29 #include "core/svg/SVGTests.h" |
30 #include "core/svg/SVGURIReference.h" | 30 #include "core/svg/SVGURIReference.h" |
31 | 31 |
32 namespace WebCore { | 32 namespace WebCore { |
33 | 33 |
34 class SVGCursorElement FINAL : public SVGElement, | 34 class SVGCursorElement FINAL : public SVGElement, |
35 public SVGTests, | 35 public SVGTests, |
36 public SVGExternalResourcesRequired, | 36 public SVGExternalResourcesRequired, |
37 public SVGURIReference { | 37 public SVGURIReference { |
38 public: | 38 public: |
39 static PassRefPtr<SVGCursorElement> create(const QualifiedName&, Document*); | 39 static PassRefPtr<SVGCursorElement> create(const QualifiedName&, Document&); |
40 | 40 |
41 virtual ~SVGCursorElement(); | 41 virtual ~SVGCursorElement(); |
42 | 42 |
43 void addClient(SVGElement*); | 43 void addClient(SVGElement*); |
44 void removeClient(SVGElement*); | 44 void removeClient(SVGElement*); |
45 void removeReferencedElement(SVGElement*); | 45 void removeReferencedElement(SVGElement*); |
46 | 46 |
47 private: | 47 private: |
48 SVGCursorElement(const QualifiedName&, Document*); | 48 SVGCursorElement(const QualifiedName&, Document&); |
49 | 49 |
50 virtual bool isValid() const { return SVGTests::isValid(); } | 50 virtual bool isValid() const { return SVGTests::isValid(); } |
51 | 51 |
52 bool isSupportedAttribute(const QualifiedName&); | 52 bool isSupportedAttribute(const QualifiedName&); |
53 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 53 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
54 virtual void svgAttributeChanged(const QualifiedName&); | 54 virtual void svgAttributeChanged(const QualifiedName&); |
55 | 55 |
56 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; | 56 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const; |
57 | 57 |
58 virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE { return
false; } | 58 virtual bool rendererIsNeeded(const NodeRenderingContext&) OVERRIDE { return
false; } |
59 | 59 |
60 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGCursorElement) | 60 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGCursorElement) |
61 DECLARE_ANIMATED_LENGTH(X, x) | 61 DECLARE_ANIMATED_LENGTH(X, x) |
62 DECLARE_ANIMATED_LENGTH(Y, y) | 62 DECLARE_ANIMATED_LENGTH(Y, y) |
63 DECLARE_ANIMATED_STRING(Href, href) | 63 DECLARE_ANIMATED_STRING(Href, href) |
64 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) | 64 DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesReq
uired) |
65 END_DECLARE_ANIMATED_PROPERTIES | 65 END_DECLARE_ANIMATED_PROPERTIES |
66 | 66 |
67 // SVGTests | 67 // SVGTests |
68 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe
atures(this); } | 68 virtual void synchronizeRequiredFeatures() { SVGTests::synchronizeRequiredFe
atures(this); } |
69 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired
Extensions(this); } | 69 virtual void synchronizeRequiredExtensions() { SVGTests::synchronizeRequired
Extensions(this); } |
70 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua
ge(this); } | 70 virtual void synchronizeSystemLanguage() { SVGTests::synchronizeSystemLangua
ge(this); } |
71 | 71 |
72 HashSet<SVGElement*> m_clients; | 72 HashSet<SVGElement*> m_clients; |
73 }; | 73 }; |
74 | 74 |
75 } // namespace WebCore | 75 } // namespace WebCore |
76 | 76 |
77 #endif | 77 #endif |
OLD | NEW |