Index: third_party/WebKit/Source/core/dom/LiveNodeListBase.cpp |
diff --git a/third_party/WebKit/Source/core/dom/LiveNodeListBase.cpp b/third_party/WebKit/Source/core/dom/LiveNodeListBase.cpp |
index ee9308998fa6eb9602f4a9e714593c93a1a1029c..3cf968712f36114714ee6d9f407fd07ff41181a4 100644 |
--- a/third_party/WebKit/Source/core/dom/LiveNodeListBase.cpp |
+++ b/third_party/WebKit/Source/core/dom/LiveNodeListBase.cpp |
@@ -39,7 +39,7 @@ void LiveNodeListBase::invalidateCacheForAttribute(const QualifiedName* attrName |
ContainerNode& LiveNodeListBase::rootNode() const |
{ |
if (isRootedAtTreeScope() && m_ownerNode->isInTreeScope()) |
- return m_ownerNode->treeScope().rootNode(); |
+ return m_ownerNode->containingTreeScope().rootNode(); |
return *m_ownerNode; |
} |