Index: third_party/WebKit/Source/core/dom/ContainerNode.cpp |
diff --git a/third_party/WebKit/Source/core/dom/ContainerNode.cpp b/third_party/WebKit/Source/core/dom/ContainerNode.cpp |
index bfa2f957134104d4f3a4c2938b652eb75623b341..4755a7c11a76b503416a6c606c68bb64695a9545 100644 |
--- a/third_party/WebKit/Source/core/dom/ContainerNode.cpp |
+++ b/third_party/WebKit/Source/core/dom/ContainerNode.cpp |
@@ -1466,7 +1466,7 @@ Element* ContainerNode::getElementById(const AtomicString& id) const |
if (isInTreeScope()) { |
// Fast path if we are in a tree scope: call getElementById() on tree scope |
// and check if the matching element is in our subtree. |
- Element* element = treeScope().getElementById(id); |
+ Element* element = rootTreeScope().getElementById(id); |
if (!element) |
return nullptr; |
if (element->isDescendantOf(this)) |