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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 | 157 |
158 template<class GenericNode, class GenericNodeContainer> | 158 template<class GenericNode, class GenericNodeContainer> |
159 friend void appendChildToContainer(GenericNode& child, GenericNodeContainer&
); | 159 friend void appendChildToContainer(GenericNode& child, GenericNodeContainer&
); |
160 | 160 |
161 template<class GenericNode, class GenericNodeContainer> | 161 template<class GenericNode, class GenericNodeContainer> |
162 friend void removeDetachedChildrenInContainer(GenericNodeContainer&); | 162 friend void removeDetachedChildrenInContainer(GenericNodeContainer&); |
163 | 163 |
164 template<class GenericNode, class GenericNodeContainer> | 164 template<class GenericNode, class GenericNodeContainer> |
165 friend void Private::addChildNodesToDeletionQueue(GenericNode*& head, Generi
cNode*& tail, GenericNodeContainer&); | 165 friend void Private::addChildNodesToDeletionQueue(GenericNode*& head, Generi
cNode*& tail, GenericNodeContainer&); |
166 | 166 |
167 bool hasChildNodes() const { return m_firstChild; } | 167 bool hasChildren() const { return m_firstChild; } |
168 | 168 |
169 void setFirstChild(SVGElementInstance* child) { m_firstChild = child; } | 169 void setFirstChild(SVGElementInstance* child) { m_firstChild = child; } |
170 void setLastChild(SVGElementInstance* child) { m_lastChild = child; } | 170 void setLastChild(SVGElementInstance* child) { m_lastChild = child; } |
171 | 171 |
172 void setNextSibling(SVGElementInstance* sibling) { m_nextSibling = sibling;
} | 172 void setNextSibling(SVGElementInstance* sibling) { m_nextSibling = sibling;
} |
173 void setPreviousSibling(SVGElementInstance* sibling) { m_previousSibling = s
ibling; } | 173 void setPreviousSibling(SVGElementInstance* sibling) { m_previousSibling = s
ibling; } |
174 | 174 |
175 virtual EventTargetData* eventTargetData() OVERRIDE; | 175 virtual EventTargetData* eventTargetData() OVERRIDE; |
176 virtual EventTargetData& ensureEventTargetData() OVERRIDE; | 176 virtual EventTargetData& ensureEventTargetData() OVERRIDE; |
177 | 177 |
178 SVGElementInstance* m_parentInstance; | 178 SVGElementInstance* m_parentInstance; |
179 | 179 |
180 SVGUseElement* m_correspondingUseElement; | 180 SVGUseElement* m_correspondingUseElement; |
181 SVGUseElement* m_directUseElement; | 181 SVGUseElement* m_directUseElement; |
182 RefPtr<SVGElement> m_element; | 182 RefPtr<SVGElement> m_element; |
183 RefPtr<SVGElement> m_shadowTreeElement; | 183 RefPtr<SVGElement> m_shadowTreeElement; |
184 | 184 |
185 SVGElementInstance* m_previousSibling; | 185 SVGElementInstance* m_previousSibling; |
186 SVGElementInstance* m_nextSibling; | 186 SVGElementInstance* m_nextSibling; |
187 | 187 |
188 SVGElementInstance* m_firstChild; | 188 SVGElementInstance* m_firstChild; |
189 SVGElementInstance* m_lastChild; | 189 SVGElementInstance* m_lastChild; |
190 }; | 190 }; |
191 | 191 |
192 } // namespace WebCore | 192 } // namespace WebCore |
193 | 193 |
194 #endif | 194 #endif |
OLD | NEW |