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

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: 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
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 #endif
143 template<class GenericNode, class GenericNodeContainer>
144 friend void Private::addChildNodesToDeletionQueue(GenericNode*& head, Generi cNode*& tail, GenericNodeContainer&);
145 148
146 bool hasChildren() const { return m_firstChild; } 149 bool hasChildren() const { return m_firstChild; }
147 150
148 void setFirstChild(SVGElementInstance* child) { m_firstChild = child; } 151 void setFirstChild(SVGElementInstance* child) { m_firstChild = child; }
149 void setLastChild(SVGElementInstance* child) { m_lastChild = child; } 152 void setLastChild(SVGElementInstance* child) { m_lastChild = child; }
150 153
151 void setNextSibling(SVGElementInstance* sibling) { m_nextSibling = sibling; } 154 void setNextSibling(SVGElementInstance* sibling) { m_nextSibling = sibling; }
152 void setPreviousSibling(SVGElementInstance* sibling) { m_previousSibling = s ibling; } 155 void setPreviousSibling(SVGElementInstance* sibling) { m_previousSibling = s ibling; }
153 156
154 virtual EventTargetData* eventTargetData() OVERRIDE; 157 virtual EventTargetData* eventTargetData() OVERRIDE;
155 virtual EventTargetData& ensureEventTargetData() OVERRIDE; 158 virtual EventTargetData& ensureEventTargetData() OVERRIDE;
156 159
157 RawPtrWillBeMember<SVGElementInstance> m_parentInstance; 160 RawPtrWillBeMember<SVGElementInstance> m_parentInstance;
158 161
159 SVGUseElement* m_correspondingUseElement; 162 RawPtrWillBeMember<SVGUseElement> m_correspondingUseElement;
160 SVGUseElement* m_directUseElement; 163 RawPtrWillBeMember<SVGUseElement> m_directUseElement;
161 RefPtrWillBeMember<SVGElement> m_element; 164 RefPtrWillBeMember<SVGElement> m_element;
162 RefPtrWillBeMember<SVGElement> m_shadowTreeElement; 165 RefPtrWillBeMember<SVGElement> m_shadowTreeElement;
163 166
164 RawPtrWillBeMember<SVGElementInstance> m_previousSibling; 167 RawPtrWillBeMember<SVGElementInstance> m_previousSibling;
165 RawPtrWillBeMember<SVGElementInstance> m_nextSibling; 168 RawPtrWillBeMember<SVGElementInstance> m_nextSibling;
166 169
167 RawPtrWillBeMember<SVGElementInstance> m_firstChild; 170 RawPtrWillBeMember<SVGElementInstance> m_firstChild;
168 RawPtrWillBeMember<SVGElementInstance> m_lastChild; 171 RawPtrWillBeMember<SVGElementInstance> m_lastChild;
169 }; 172 };
170 173
171 } // namespace WebCore 174 } // namespace WebCore
172 175
173 #endif 176 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698