| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 namespace WebCore { | 28 namespace WebCore { |
| 29 | 29 |
| 30 namespace Private { | 30 namespace Private { |
| 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; | |
| 38 class SVGUseElement; | 37 class SVGUseElement; |
| 39 | 38 |
| 40 // SVGElementInstance mimics Node, but without providing all its functionality | 39 // SVGElementInstance mimics Node, but without providing all its functionality |
| 41 class SVGElementInstance FINAL : public TreeShared<SVGElementInstance>, public E
ventTarget, public ScriptWrappable { | 40 class SVGElementInstance FINAL : public TreeShared<SVGElementInstance>, public E
ventTarget, public ScriptWrappable { |
| 42 DEFINE_EVENT_TARGET_REFCOUNTING(TreeShared<SVGElementInstance>); | 41 DEFINE_EVENT_TARGET_REFCOUNTING(TreeShared<SVGElementInstance>); |
| 43 public: | 42 public: |
| 44 static PassRefPtr<SVGElementInstance> create(SVGUseElement* correspondingUse
Element, SVGUseElement* directUseElement, PassRefPtr<SVGElement> originalElement
); | 43 static PassRefPtr<SVGElementInstance> create(SVGUseElement* correspondingUse
Element, SVGUseElement* directUseElement, PassRefPtr<SVGElement> originalElement
); |
| 45 | 44 |
| 46 virtual ~SVGElementInstance(); | 45 virtual ~SVGElementInstance(); |
| 47 | 46 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 58 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) OVERRIDE; | 57 virtual bool dispatchEvent(PassRefPtrWillBeRawPtr<Event>) OVERRIDE; |
| 59 | 58 |
| 60 SVGElement* correspondingElement() const { return m_element.get(); } | 59 SVGElement* correspondingElement() const { return m_element.get(); } |
| 61 SVGUseElement* correspondingUseElement() const { return m_correspondingUseEl
ement; } | 60 SVGUseElement* correspondingUseElement() const { return m_correspondingUseEl
ement; } |
| 62 SVGUseElement* directUseElement() const { return m_directUseElement; } | 61 SVGUseElement* directUseElement() const { return m_directUseElement; } |
| 63 SVGElement* shadowTreeElement() const { return m_shadowTreeElement.get(); } | 62 SVGElement* shadowTreeElement() const { return m_shadowTreeElement.get(); } |
| 64 | 63 |
| 65 void detach(); | 64 void detach(); |
| 66 | 65 |
| 67 SVGElementInstance* parentNode() const { return m_parentInstance; } | 66 SVGElementInstance* parentNode() const { return m_parentInstance; } |
| 68 PassRefPtr<SVGElementInstanceList> childNodes(); | |
| 69 | 67 |
| 70 SVGElementInstance* previousSibling() const { return m_previousSibling; } | 68 SVGElementInstance* previousSibling() const { return m_previousSibling; } |
| 71 SVGElementInstance* nextSibling() const { return m_nextSibling; } | 69 SVGElementInstance* nextSibling() const { return m_nextSibling; } |
| 72 | 70 |
| 73 SVGElementInstance* firstChild() const { return m_firstChild; } | 71 SVGElementInstance* firstChild() const { return m_firstChild; } |
| 74 SVGElementInstance* lastChild() const { return m_lastChild; } | 72 SVGElementInstance* lastChild() const { return m_lastChild; } |
| 75 | 73 |
| 76 inline Document* ownerDocument() const; | 74 inline Document* ownerDocument() const; |
| 77 | 75 |
| 78 class InvalidationGuard { | 76 class InvalidationGuard { |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 SVGElementInstance* m_previousSibling; | 185 SVGElementInstance* m_previousSibling; |
| 188 SVGElementInstance* m_nextSibling; | 186 SVGElementInstance* m_nextSibling; |
| 189 | 187 |
| 190 SVGElementInstance* m_firstChild; | 188 SVGElementInstance* m_firstChild; |
| 191 SVGElementInstance* m_lastChild; | 189 SVGElementInstance* m_lastChild; |
| 192 }; | 190 }; |
| 193 | 191 |
| 194 } // namespace WebCore | 192 } // namespace WebCore |
| 195 | 193 |
| 196 #endif | 194 #endif |
| OLD | NEW |