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 21 matching lines...) Expand all Loading... |
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 SVGUseElement; | 37 class SVGUseElement; |
38 | 38 |
39 // SVGElementInstance mimics Node, but without providing all its functionality | 39 // SVGElementInstance mimics Node, but without providing all its functionality |
40 class SVGElementInstance FINAL : public TreeSharedWillBeRefCountedGarbageCollect
ed<SVGElementInstance>, public EventTarget, public ScriptWrappable { | 40 class SVGElementInstance FINAL : public TreeSharedWillBeRefCountedGarbageCollect
ed<SVGElementInstance>, public EventTarget, public ScriptWrappable { |
41 DEFINE_EVENT_TARGET_REFCOUNTING(TreeSharedWillBeRefCountedGarbageCollected<S
VGElementInstance>); | 41 DEFINE_EVENT_TARGET_REFCOUNTING(TreeSharedWillBeRefCountedGarbageCollected<S
VGElementInstance>); |
| 42 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(SVGElementInstance); |
42 public: | 43 public: |
43 static PassRefPtrWillBeRawPtr<SVGElementInstance> create(SVGUseElement* corr
espondingUseElement, SVGUseElement* directUseElement, PassRefPtrWillBeRawPtr<SVG
Element> originalElement); | 44 static PassRefPtrWillBeRawPtr<SVGElementInstance> create(SVGUseElement* corr
espondingUseElement, SVGUseElement* directUseElement, PassRefPtrWillBeRawPtr<SVG
Element> originalElement); |
44 | 45 |
45 virtual ~SVGElementInstance(); | 46 virtual ~SVGElementInstance(); |
46 | 47 |
47 void setParentOrShadowHostNode(SVGElementInstance* instance) { m_parentInsta
nce = instance; } | 48 void setParentOrShadowHostNode(SVGElementInstance* instance) { m_parentInsta
nce = instance; } |
48 | 49 |
49 virtual const AtomicString& interfaceName() const OVERRIDE; | 50 virtual const AtomicString& interfaceName() const OVERRIDE; |
50 virtual ExecutionContext* executionContext() const OVERRIDE; | 51 virtual ExecutionContext* executionContext() const OVERRIDE; |
51 | 52 |
(...skipping 14 matching lines...) Expand all Loading... |
66 SVGElementInstance* parentNode() const { return m_parentInstance; } | 67 SVGElementInstance* parentNode() const { return m_parentInstance; } |
67 | 68 |
68 SVGElementInstance* previousSibling() const { return m_previousSibling; } | 69 SVGElementInstance* previousSibling() const { return m_previousSibling; } |
69 SVGElementInstance* nextSibling() const { return m_nextSibling; } | 70 SVGElementInstance* nextSibling() const { return m_nextSibling; } |
70 | 71 |
71 SVGElementInstance* firstChild() const { return m_firstChild; } | 72 SVGElementInstance* firstChild() const { return m_firstChild; } |
72 SVGElementInstance* lastChild() const { return m_lastChild; } | 73 SVGElementInstance* lastChild() const { return m_lastChild; } |
73 | 74 |
74 inline Document* ownerDocument() const; | 75 inline Document* ownerDocument() const; |
75 | 76 |
76 virtual void trace(Visitor*); | 77 virtual void trace(Visitor*) OVERRIDE; |
77 | 78 |
78 // EventTarget API | 79 // EventTarget API |
79 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), abort); | 80 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), abort); |
80 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), blur); | 81 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), blur); |
81 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), change); | 82 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), change); |
82 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), click); | 83 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), click); |
83 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), contextm
enu); | 84 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), contextm
enu); |
84 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), dblclick
); | 85 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), dblclick
); |
85 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), error); | 86 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), error); |
86 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), focus); | 87 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), focus); |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 RawPtrWillBeMember<SVGElementInstance> m_previousSibling; | 170 RawPtrWillBeMember<SVGElementInstance> m_previousSibling; |
170 RawPtrWillBeMember<SVGElementInstance> m_nextSibling; | 171 RawPtrWillBeMember<SVGElementInstance> m_nextSibling; |
171 | 172 |
172 RawPtrWillBeMember<SVGElementInstance> m_firstChild; | 173 RawPtrWillBeMember<SVGElementInstance> m_firstChild; |
173 RawPtrWillBeMember<SVGElementInstance> m_lastChild; | 174 RawPtrWillBeMember<SVGElementInstance> m_lastChild; |
174 }; | 175 }; |
175 | 176 |
176 } // namespace WebCore | 177 } // namespace WebCore |
177 | 178 |
178 #endif | 179 #endif |
OLD | NEW |