OLD | NEW |
1 /* | 1 /* |
2 Copyright (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 Copyright (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
3 | 3 |
4 This file is part of the KDE project | 4 This file is part of the KDE project |
5 | 5 |
6 This library is free software; you can redistribute it and/or | 6 This library is free software; you can redistribute it and/or |
7 modify it under the terms of the GNU Library General Public | 7 modify it under the terms of the GNU Library General Public |
8 License as published by the Free Software Foundation; either | 8 License as published by the Free Software Foundation; either |
9 version 2 of the License, or (at your option) any later version. | 9 version 2 of the License, or (at your option) any later version. |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 { | 48 { |
49 public: | 49 public: |
50 SVGElementInstance(SVGUseElement*, SVGElement* originalElement); | 50 SVGElementInstance(SVGUseElement*, SVGElement* originalElement); |
51 virtual ~SVGElementInstance(); | 51 virtual ~SVGElementInstance(); |
52 | 52 |
53 bool needsUpdate() const { return m_needsUpdate; } | 53 bool needsUpdate() const { return m_needsUpdate; } |
54 void setNeedsUpdate(bool); | 54 void setNeedsUpdate(bool); |
55 | 55 |
56 virtual ScriptExecutionContext* scriptExecutionContext() const; | 56 virtual ScriptExecutionContext* scriptExecutionContext() const; |
57 | 57 |
58 virtual Node* toNode() { return shadowTreeElement(); } | 58 virtual EventTargetNode* toNode() { return shadowTreeElement(); } |
59 virtual SVGElementInstance* toSVGElementInstance() { return this; } | 59 virtual SVGElementInstance* toSVGElementInstance() { return this; } |
60 | 60 |
61 virtual void addEventListener(const AtomicString& eventType, PassRefPtr<
EventListener>, bool useCapture); | 61 virtual void addEventListener(const AtomicString& eventType, PassRefPtr<
EventListener>, bool useCapture); |
62 virtual void removeEventListener(const AtomicString& eventType, EventLis
tener*, bool useCapture); | 62 virtual void removeEventListener(const AtomicString& eventType, EventLis
tener*, bool useCapture); |
63 virtual bool dispatchEvent(PassRefPtr<Event>, ExceptionCode&); | 63 virtual bool dispatchEvent(PassRefPtr<Event>, ExceptionCode&); |
64 | 64 |
65 SVGElement* correspondingElement() const { return m_element.get(); } | 65 SVGElement* correspondingElement() const { return m_element.get(); } |
66 SVGUseElement* correspondingUseElement() const { return m_useElement; } | 66 SVGUseElement* correspondingUseElement() const { return m_useElement; } |
67 SVGElement* shadowTreeElement() const { return m_shadowTreeElement.get()
; } | 67 SVGElement* shadowTreeElement() const { return m_shadowTreeElement.get()
; } |
68 | 68 |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 SVGElementInstance* m_nextSibling; | 202 SVGElementInstance* m_nextSibling; |
203 | 203 |
204 SVGElementInstance* m_firstChild; | 204 SVGElementInstance* m_firstChild; |
205 SVGElementInstance* m_lastChild; | 205 SVGElementInstance* m_lastChild; |
206 }; | 206 }; |
207 | 207 |
208 } // namespace WebCore | 208 } // namespace WebCore |
209 | 209 |
210 #endif // ENABLE(SVG) | 210 #endif // ENABLE(SVG) |
211 #endif | 211 #endif |
OLD | NEW |