Index: third_party/WebKit/Source/core/dom/Element.h |
diff --git a/third_party/WebKit/Source/core/dom/Element.h b/third_party/WebKit/Source/core/dom/Element.h |
index 34029e6f47d00bc385d2ee86335dc94735f9c24e..6c236c8471e2b938dcd2117d501ce4d2bb8c1f88 100644 |
--- a/third_party/WebKit/Source/core/dom/Element.h |
+++ b/third_party/WebKit/Source/core/dom/Element.h |
@@ -878,7 +878,7 @@ inline void Node::removedFrom(ContainerNode* insertionPoint) |
clearFlag(InDocumentFlag); |
insertionPoint->document().decrementNodeCount(); |
} |
- if (isInShadowTree() && !treeScope().rootNode().isShadowRoot()) |
+ if (isInShadowTree() && !rootTreeScope().rootNode().isShadowRoot()) |
clearFlag(IsInShadowTreeFlag); |
if (AXObjectCache* cache = document().existingAXObjectCache()) |
cache->remove(this); |