| 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 20 matching lines...) Expand all Loading... |
| 31 template<class GenericNode, class GenericNodeContainer> | 31 template<class GenericNode, class GenericNodeContainer> |
| 32 void addChildNodesToDeletionQueue(GenericNode*& head, GenericNode*& tail, Generi
cNodeContainer&); | 32 void addChildNodesToDeletionQueue(GenericNode*& head, GenericNode*& tail, Generi
cNodeContainer&); |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 class Document; | 35 class Document; |
| 36 class SVGElement; | 36 class SVGElement; |
| 37 class SVGElementInstanceList; | 37 class SVGElementInstanceList; |
| 38 class SVGUseElement; | 38 class SVGUseElement; |
| 39 | 39 |
| 40 // SVGElementInstance mimics Node, but without providing all its functionality | 40 // SVGElementInstance mimics Node, but without providing all its functionality |
| 41 class SVGElementInstance : public EventTarget, public ScriptWrappable, public Tr
eeShared<SVGElementInstance> { | 41 class SVGElementInstance FINAL : public EventTarget, public ScriptWrappable, pub
lic TreeShared<SVGElementInstance> { |
| 42 DEFINE_EVENT_TARGET_REFCOUNTING(TreeShared<SVGElementInstance>); | 42 DEFINE_EVENT_TARGET_REFCOUNTING(TreeShared<SVGElementInstance>); |
| 43 public: | 43 public: |
| 44 static PassRefPtr<SVGElementInstance> create(SVGUseElement* correspondingUse
Element, SVGUseElement* directUseElement, PassRefPtr<SVGElement> originalElement
); | 44 static PassRefPtr<SVGElementInstance> create(SVGUseElement* correspondingUse
Element, SVGUseElement* directUseElement, PassRefPtr<SVGElement> originalElement
); |
| 45 | 45 |
| 46 virtual ~SVGElementInstance(); | 46 virtual ~SVGElementInstance(); |
| 47 | 47 |
| 48 void setParentOrShadowHostNode(SVGElementInstance* instance) { m_parentInsta
nce = instance; } | 48 void setParentOrShadowHostNode(SVGElementInstance* instance) { m_parentInsta
nce = instance; } |
| 49 | 49 |
| 50 virtual const AtomicString& interfaceName() const; | 50 virtual const AtomicString& interfaceName() const OVERRIDE; |
| 51 virtual ExecutionContext* executionContext() const; | 51 virtual ExecutionContext* executionContext() const OVERRIDE; |
| 52 | 52 |
| 53 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even
tListener>, bool useCapture); | 53 virtual bool addEventListener(const AtomicString& eventType, PassRefPtr<Even
tListener>, bool useCapture) OVERRIDE; |
| 54 virtual bool removeEventListener(const AtomicString& eventType, EventListene
r*, bool useCapture); | 54 virtual bool removeEventListener(const AtomicString& eventType, EventListene
r*, bool useCapture) OVERRIDE; |
| 55 virtual void removeAllEventListeners(); | 55 virtual void removeAllEventListeners() OVERRIDE; |
| 56 | 56 |
| 57 using EventTarget::dispatchEvent; | 57 using EventTarget::dispatchEvent; |
| 58 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE; | 58 virtual bool dispatchEvent(PassRefPtr<Event>) OVERRIDE; |
| 59 | 59 |
| 60 SVGElement* correspondingElement() const { return m_element.get(); } | 60 SVGElement* correspondingElement() const { return m_element.get(); } |
| 61 SVGUseElement* correspondingUseElement() const { return m_correspondingUseEl
ement; } | 61 SVGUseElement* correspondingUseElement() const { return m_correspondingUseEl
ement; } |
| 62 SVGUseElement* directUseElement() const { return m_directUseElement; } | 62 SVGUseElement* directUseElement() const { return m_directUseElement; } |
| 63 SVGElement* shadowTreeElement() const { return m_shadowTreeElement.get(); } | 63 SVGElement* shadowTreeElement() const { return m_shadowTreeElement.get(); } |
| 64 | 64 |
| 65 void detach(); | 65 void detach(); |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 SVGElementInstance* m_previousSibling; | 185 SVGElementInstance* m_previousSibling; |
| 186 SVGElementInstance* m_nextSibling; | 186 SVGElementInstance* m_nextSibling; |
| 187 | 187 |
| 188 SVGElementInstance* m_firstChild; | 188 SVGElementInstance* m_firstChild; |
| 189 SVGElementInstance* m_lastChild; | 189 SVGElementInstance* m_lastChild; |
| 190 }; | 190 }; |
| 191 | 191 |
| 192 } // namespace WebCore | 192 } // namespace WebCore |
| 193 | 193 |
| 194 #endif | 194 #endif |
| OLD | NEW |