| 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 17 matching lines...) Expand all Loading... |
| 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* container); | 32 void addChildNodesToDeletionQueue(GenericNode*& head, GenericNode*& tail, Generi
cNodeContainer* container); |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 class Document; | 35 class Document; |
| 36 class SVGElement; | 36 class SVGElement; |
| 37 class SVGElementInstanceList; | 37 class SVGElementInstanceList; |
| 38 class SVGStyledElement; | |
| 39 class SVGUseElement; | 38 class SVGUseElement; |
| 40 | 39 |
| 41 // SVGElementInstance mimics Node, but without providing all its functionality | 40 // SVGElementInstance mimics Node, but without providing all its functionality |
| 42 class SVGElementInstance : public EventTarget, public ScriptWrappable, public Tr
eeShared<SVGElementInstance> { | 41 class SVGElementInstance : public EventTarget, public ScriptWrappable, public Tr
eeShared<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 |
| 48 void setParentOrShadowHostNode(SVGElementInstance* instance) { m_parentInsta
nce = instance; } | 47 void setParentOrShadowHostNode(SVGElementInstance* instance) { m_parentInsta
nce = instance; } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 SVGElement* m_element; | 83 SVGElement* m_element; |
| 85 }; | 84 }; |
| 86 | 85 |
| 87 class InstanceUpdateBlocker { | 86 class InstanceUpdateBlocker { |
| 88 WTF_MAKE_NONCOPYABLE(InstanceUpdateBlocker); | 87 WTF_MAKE_NONCOPYABLE(InstanceUpdateBlocker); |
| 89 public: | 88 public: |
| 90 InstanceUpdateBlocker(SVGElement* targetElement); | 89 InstanceUpdateBlocker(SVGElement* targetElement); |
| 91 ~InstanceUpdateBlocker(); | 90 ~InstanceUpdateBlocker(); |
| 92 | 91 |
| 93 private: | 92 private: |
| 94 SVGStyledElement* m_targetElement; | 93 SVGElement* m_targetElement; |
| 95 }; | 94 }; |
| 96 | 95 |
| 97 static void invalidateAllInstancesOfElement(SVGElement*); | 96 static void invalidateAllInstancesOfElement(SVGElement*); |
| 98 | 97 |
| 99 using TreeShared<SVGElementInstance>::ref; | 98 using TreeShared<SVGElementInstance>::ref; |
| 100 using TreeShared<SVGElementInstance>::deref; | 99 using TreeShared<SVGElementInstance>::deref; |
| 101 | 100 |
| 102 // EventTarget API | 101 // EventTarget API |
| 103 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), abort); | 102 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), abort); |
| 104 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), blur); | 103 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), blur); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 SVGElementInstance* m_previousSibling; | 188 SVGElementInstance* m_previousSibling; |
| 190 SVGElementInstance* m_nextSibling; | 189 SVGElementInstance* m_nextSibling; |
| 191 | 190 |
| 192 SVGElementInstance* m_firstChild; | 191 SVGElementInstance* m_firstChild; |
| 193 SVGElementInstance* m_lastChild; | 192 SVGElementInstance* m_lastChild; |
| 194 }; | 193 }; |
| 195 | 194 |
| 196 } // namespace WebCore | 195 } // namespace WebCore |
| 197 | 196 |
| 198 #endif | 197 #endif |
| OLD | NEW |