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 27 matching lines...) Expand all Loading... |
38 static PassRefPtr<SVGCursorElement> create(Document&); | 38 static PassRefPtr<SVGCursorElement> create(Document&); |
39 | 39 |
40 virtual ~SVGCursorElement(); | 40 virtual ~SVGCursorElement(); |
41 | 41 |
42 void addClient(SVGElement*); | 42 void addClient(SVGElement*); |
43 void removeClient(SVGElement*); | 43 void removeClient(SVGElement*); |
44 void removeReferencedElement(SVGElement*); | 44 void removeReferencedElement(SVGElement*); |
45 | 45 |
46 SVGAnimatedLength* x() const { return m_x.get(); } | 46 SVGAnimatedLength* x() const { return m_x.get(); } |
47 SVGAnimatedLength* y() const { return m_y.get(); } | 47 SVGAnimatedLength* y() const { return m_y.get(); } |
48 SVGAnimatedString* href() { return m_href.get(); } | |
49 | |
50 private: | 48 private: |
51 explicit SVGCursorElement(Document&); | 49 explicit SVGCursorElement(Document&); |
52 | 50 |
53 virtual bool isValid() const OVERRIDE { return SVGTests::isValid(); } | 51 virtual bool isValid() const OVERRIDE { return SVGTests::isValid(); } |
54 | 52 |
55 bool isSupportedAttribute(const QualifiedName&); | 53 bool isSupportedAttribute(const QualifiedName&); |
56 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; | 54 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR
IDE; |
57 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; | 55 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; |
58 | 56 |
59 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } | 57 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE { return false; } |
60 | 58 |
61 RefPtr<SVGAnimatedLength> m_x; | 59 RefPtr<SVGAnimatedLength> m_x; |
62 RefPtr<SVGAnimatedLength> m_y; | 60 RefPtr<SVGAnimatedLength> m_y; |
63 RefPtr<SVGAnimatedString> m_href; | |
64 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGCursorElement) | 61 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGCursorElement) |
65 END_DECLARE_ANIMATED_PROPERTIES | 62 END_DECLARE_ANIMATED_PROPERTIES |
66 | 63 |
67 HashSet<SVGElement*> m_clients; | 64 HashSet<SVGElement*> m_clients; |
68 }; | 65 }; |
69 | 66 |
70 DEFINE_NODE_TYPE_CASTS(SVGCursorElement, hasTagName(SVGNames::cursorTag)); | 67 DEFINE_NODE_TYPE_CASTS(SVGCursorElement, hasTagName(SVGNames::cursorTag)); |
71 | 68 |
72 } // namespace WebCore | 69 } // namespace WebCore |
73 | 70 |
74 #endif | 71 #endif |
OLD | NEW |