Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(180)

Side by Side Diff: Source/core/svg/SVGElementInstance.h

Issue 267303004: Oilpan: cleanup based on review comments after removal of TreeShared. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix typo and merge Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/svg/SVGElement.cpp ('k') | Source/core/svg/SVGElementInstance.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), selectst art); 119 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), selectst art);
120 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), submit); 120 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), submit);
121 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), unload); 121 DECLARE_FORWARDING_ATTRIBUTE_EVENT_LISTENER(correspondingElement(), unload);
122 122
123 private: 123 private:
124 friend class SVGUseElement; 124 friend class SVGUseElement;
125 friend class TreeShared<SVGElementInstance>; 125 friend class TreeShared<SVGElementInstance>;
126 126
127 SVGElementInstance(SVGUseElement*, SVGUseElement*, PassRefPtr<SVGElement> or iginalElement); 127 SVGElementInstance(SVGUseElement*, SVGUseElement*, PassRefPtr<SVGElement> or iginalElement);
128 128
129
130 #if !ENABLE(OILPAN)
129 void removedLastRef(); 131 void removedLastRef();
132 #endif
133
130 bool hasTreeSharedParent() const { return !!m_parentInstance; } 134 bool hasTreeSharedParent() const { return !!m_parentInstance; }
131 135
132 virtual Node* toNode() OVERRIDE; 136 virtual Node* toNode() OVERRIDE;
133 137
134 void appendChild(PassRefPtr<SVGElementInstance> child); 138 void appendChild(PassRefPtr<SVGElementInstance> child);
135 void setShadowTreeElement(SVGElement*); 139 void setShadowTreeElement(SVGElement*);
136 140
137 template<class GenericNode, class GenericNodeContainer> 141 template<class GenericNode, class GenericNodeContainer>
138 friend void appendChildToContainer(GenericNode& child, GenericNodeContainer& ); 142 friend void appendChildToContainer(GenericNode& child, GenericNodeContainer& );
139 143
144 #if !ENABLE(OILPAN)
140 template<class GenericNode, class GenericNodeContainer> 145 template<class GenericNode, class GenericNodeContainer>
141 friend void removeDetachedChildrenInContainer(GenericNodeContainer&); 146 friend void removeDetachedChildrenInContainer(GenericNodeContainer&);
142 147
143 template<class GenericNode, class GenericNodeContainer> 148 template<class GenericNode, class GenericNodeContainer>
144 friend void Private::addChildNodesToDeletionQueue(GenericNode*& head, Generi cNode*& tail, GenericNodeContainer&); 149 friend void Private::addChildNodesToDeletionQueue(GenericNode*& head, Generi cNode*& tail, GenericNodeContainer&);
150 #endif
145 151
146 bool hasChildren() const { return m_firstChild; } 152 bool hasChildren() const { return m_firstChild; }
147 153
148 void setFirstChild(SVGElementInstance* child) { m_firstChild = child; } 154 void setFirstChild(SVGElementInstance* child) { m_firstChild = child; }
149 void setLastChild(SVGElementInstance* child) { m_lastChild = child; } 155 void setLastChild(SVGElementInstance* child) { m_lastChild = child; }
150 156
151 void setNextSibling(SVGElementInstance* sibling) { m_nextSibling = sibling; } 157 void setNextSibling(SVGElementInstance* sibling) { m_nextSibling = sibling; }
152 void setPreviousSibling(SVGElementInstance* sibling) { m_previousSibling = s ibling; } 158 void setPreviousSibling(SVGElementInstance* sibling) { m_previousSibling = s ibling; }
153 159
154 virtual EventTargetData* eventTargetData() OVERRIDE; 160 virtual EventTargetData* eventTargetData() OVERRIDE;
155 virtual EventTargetData& ensureEventTargetData() OVERRIDE; 161 virtual EventTargetData& ensureEventTargetData() OVERRIDE;
156 162
157 RawPtrWillBeMember<SVGElementInstance> m_parentInstance; 163 RawPtrWillBeMember<SVGElementInstance> m_parentInstance;
158 164
159 SVGUseElement* m_correspondingUseElement; 165 RawPtrWillBeMember<SVGUseElement> m_correspondingUseElement;
160 SVGUseElement* m_directUseElement; 166 RawPtrWillBeMember<SVGUseElement> m_directUseElement;
161 RefPtrWillBeMember<SVGElement> m_element; 167 RefPtrWillBeMember<SVGElement> m_element;
162 RefPtrWillBeMember<SVGElement> m_shadowTreeElement; 168 RefPtrWillBeMember<SVGElement> m_shadowTreeElement;
163 169
164 RawPtrWillBeMember<SVGElementInstance> m_previousSibling; 170 RawPtrWillBeMember<SVGElementInstance> m_previousSibling;
165 RawPtrWillBeMember<SVGElementInstance> m_nextSibling; 171 RawPtrWillBeMember<SVGElementInstance> m_nextSibling;
166 172
167 RawPtrWillBeMember<SVGElementInstance> m_firstChild; 173 RawPtrWillBeMember<SVGElementInstance> m_firstChild;
168 RawPtrWillBeMember<SVGElementInstance> m_lastChild; 174 RawPtrWillBeMember<SVGElementInstance> m_lastChild;
169 }; 175 };
170 176
171 } // namespace WebCore 177 } // namespace WebCore
172 178
173 #endif 179 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGElement.cpp ('k') | Source/core/svg/SVGElementInstance.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698