Index: Source/core/dom/LiveNodeList.cpp |
diff --git a/Source/core/dom/LiveNodeList.cpp b/Source/core/dom/LiveNodeList.cpp |
index abb485eb2ff5a4b562098c4f6ad9a0f201d58f90..87aa15b4b0ad132bbe22b19082be355538406ee7 100644 |
--- a/Source/core/dom/LiveNodeList.cpp |
+++ b/Source/core/dom/LiveNodeList.cpp |
@@ -73,7 +73,7 @@ Node* LiveNodeList::namedItem(const AtomicString& elementId) const |
Node* rootNode = this->rootNode(); |
if (rootNode->inDocument()) { |
- Element* element = rootNode->treeScope().getElementById(elementId); |
+ Element* element = rootNode->treeScope()->getElementById(elementId); |
if (element && nodeMatches(element) && element->isDescendantOf(rootNode)) |
return element; |
if (!element) |