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 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 3 * Copyright (C) 2011 Torch Mobile (Beijing) Co. Ltd. All rights reserved. |
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even
tListener>, bool useCapture); | 52 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even
tListener>, bool useCapture); |
53 virtual bool removeEventListener(const AtomicString& eventType, EventListene
r*, bool useCapture); | 53 virtual bool removeEventListener(const AtomicString& eventType, EventListene
r*, bool useCapture); |
54 virtual void removeAllEventListeners(); | 54 virtual void removeAllEventListeners(); |
55 using EventTarget::dispatchEvent; | 55 using EventTarget::dispatchEvent; |
56 virtual bool dispatchEvent(PassRefPtr<Event>); | 56 virtual bool dispatchEvent(PassRefPtr<Event>); |
57 | 57 |
58 SVGElement* correspondingElement() const { return m_element.get(); } | 58 SVGElement* correspondingElement() const { return m_element.get(); } |
59 SVGUseElement* correspondingUseElement() const { return m_correspondingUseEl
ement; } | 59 SVGUseElement* correspondingUseElement() const { return m_correspondingUseEl
ement; } |
60 SVGUseElement* directUseElement() const { return m_directUseElement; } | 60 SVGUseElement* directUseElement() const { return m_directUseElement; } |
61 SVGElement* shadowTreeElement() const { return m_shadowTreeElement.get(); } | 61 SVGElement* shadowTreeElement() const { return m_shadowTreeElement.get(); } |
| 62 void clearChildren(); |
62 void clearUseElements() | 63 void clearUseElements() |
63 { | 64 { |
64 m_directUseElement = 0; | 65 m_directUseElement = 0; |
65 m_correspondingUseElement = 0; | 66 m_correspondingUseElement = 0; |
66 } | 67 } |
67 | 68 |
68 SVGElementInstance* parentNode() const { return parent(); } | 69 SVGElementInstance* parentNode() const { return parent(); } |
69 PassRefPtr<SVGElementInstanceList> childNodes(); | 70 PassRefPtr<SVGElementInstanceList> childNodes(); |
70 | 71 |
71 SVGElementInstance* previousSibling() const { return m_previousSibling; } | 72 SVGElementInstance* previousSibling() const { return m_previousSibling; } |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 SVGElementInstance* m_nextSibling; | 175 SVGElementInstance* m_nextSibling; |
175 | 176 |
176 SVGElementInstance* m_firstChild; | 177 SVGElementInstance* m_firstChild; |
177 SVGElementInstance* m_lastChild; | 178 SVGElementInstance* m_lastChild; |
178 }; | 179 }; |
179 | 180 |
180 } // namespace WebCore | 181 } // namespace WebCore |
181 | 182 |
182 #endif // ENABLE(SVG) | 183 #endif // ENABLE(SVG) |
183 #endif | 184 #endif |
OLD | NEW |