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

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

Issue 180143003: Have LiveNodeListBase::ownerNode() return a reference (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/NodeRareData.h ('k') | Source/core/html/HTMLAllCollection.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/TagCollection.cpp
diff --git a/Source/core/dom/TagCollection.cpp b/Source/core/dom/TagCollection.cpp
index 275d942f0dda70478d227af6f6fca7772d9158cb..3a20c24b8b981ff724ba8d83f381f9c6e4524e6a 100644
--- a/Source/core/dom/TagCollection.cpp
+++ b/Source/core/dom/TagCollection.cpp
@@ -40,9 +40,9 @@ TagCollection::TagCollection(ContainerNode* rootNode, CollectionType type, const
TagCollection::~TagCollection()
{
if (m_namespaceURI == starAtom)
- ownerNode()->nodeLists()->removeCache(this, type(), m_localName);
+ ownerNode().nodeLists()->removeCache(this, type(), m_localName);
else
- ownerNode()->nodeLists()->removeCache(this, m_namespaceURI, m_localName);
+ ownerNode().nodeLists()->removeCache(this, m_namespaceURI, m_localName);
}
bool TagCollection::elementMatches(const Element& testNode) const
« no previous file with comments | « Source/core/dom/NodeRareData.h ('k') | Source/core/html/HTMLAllCollection.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698