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

Unified Diff: Source/core/dom/Node.cpp

Issue 176933013: Pass rootNode by reference when constructing node lists / collections (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/NameNodeList.cpp ('k') | Source/core/dom/NodeRareData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index bcd4ca3091f1dfe831cbe81c8a757c06a2f115c7..92ec953056d098ed231549d7545403ed47bd23a5 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -358,8 +358,8 @@ void Node::setNodeValue(const String&)
PassRefPtr<NodeList> Node::childNodes()
{
if (isContainerNode())
- return ensureRareData().ensureNodeLists().ensureChildNodeList(toContainerNode(this));
- return ensureRareData().ensureNodeLists().ensureEmptyChildNodeList(this);
+ return ensureRareData().ensureNodeLists().ensureChildNodeList(toContainerNode(*this));
+ return ensureRareData().ensureNodeLists().ensureEmptyChildNodeList(*this);
}
Node& Node::lastDescendant() const
« no previous file with comments | « Source/core/dom/NameNodeList.cpp ('k') | Source/core/dom/NodeRareData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698