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

Side by Side Diff: Source/core/dom/ContainerNode.h

Issue 258143002: Oilpan: move DOM string collection objects to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 // ------------------------------------------------------------------------- ---- 183 // ------------------------------------------------------------------------- ----
184 // Notification of document structure changes (see core/dom/Node.h for more notification methods) 184 // Notification of document structure changes (see core/dom/Node.h for more notification methods)
185 185
186 // Notifies the node that it's list of children have changed (either by addi ng or removing child nodes), or a child 186 // Notifies the node that it's list of children have changed (either by addi ng or removing child nodes), or a child
187 // node that is of the type CDATA_SECTION_NODE, TEXT_NODE or COMMENT_NODE ha s changed its value. 187 // node that is of the type CDATA_SECTION_NODE, TEXT_NODE or COMMENT_NODE ha s changed its value.
188 virtual void childrenChanged(bool createdByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0); 188 virtual void childrenChanged(bool createdByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0);
189 189
190 void disconnectDescendantFrames(); 190 void disconnectDescendantFrames();
191 191
192 virtual void trace(Visitor* visitor) OVERRIDE { Node::trace(visitor); }
Mads Ager (chromium) 2014/04/29 09:05:14 If the only thing this trace method does is call t
193
192 protected: 194 protected:
193 ContainerNode(TreeScope*, ConstructionType = CreateContainer); 195 ContainerNode(TreeScope*, ConstructionType = CreateContainer);
194 196
195 template<class GenericNode, class GenericNodeContainer> 197 template<class GenericNode, class GenericNodeContainer>
196 friend void appendChildToContainer(GenericNode& child, GenericNodeContainer& ); 198 friend void appendChildToContainer(GenericNode& child, GenericNodeContainer& );
197 199
198 template<class GenericNode, class GenericNodeContainer> 200 template<class GenericNode, class GenericNodeContainer>
199 friend void Private::addChildNodesToDeletionQueue(GenericNode*& head, Generi cNode*& tail, GenericNodeContainer&); 201 friend void Private::addChildNodesToDeletionQueue(GenericNode*& head, Generi cNode*& tail, GenericNodeContainer&);
200 202
201 void removeDetachedChildren(); 203 void removeDetachedChildren();
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 393
392 RefPtr<Node> m_currentNode; 394 RefPtr<Node> m_currentNode;
393 unsigned m_currentIndex; 395 unsigned m_currentIndex;
394 OwnPtr<Vector<RefPtr<Node> > > m_childNodes; // Lazily instantiated. 396 OwnPtr<Vector<RefPtr<Node> > > m_childNodes; // Lazily instantiated.
395 ChildNodesLazySnapshot* m_nextSnapshot; 397 ChildNodesLazySnapshot* m_nextSnapshot;
396 }; 398 };
397 399
398 } // namespace WebCore 400 } // namespace WebCore
399 401
400 #endif // ContainerNode_h 402 #endif // ContainerNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698