Index: third_party/WebKit/Source/core/dom/Element.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp |
index 1e9ac996a103133d46428a7536e41ccbf27841a7..3ba22586e4709349276a49c295af097233c2544c 100644 |
--- a/third_party/WebKit/Source/core/dom/Element.cpp |
+++ b/third_party/WebKit/Source/core/dom/Element.cpp |
@@ -2855,7 +2855,7 @@ bool Element::isInDescendantTreeOf(const Element* shadowHost) const |
DCHECK(shadowHost); |
DCHECK(isShadowHost(shadowHost)); |
- for (const Element* ancestorShadowHost = this->shadowHost(); ancestorShadowHost; ancestorShadowHost = ancestorShadowHost->shadowHost()) { |
+ for (const Element* ancestorShadowHost = this->ownerShadowHost(); ancestorShadowHost; ancestorShadowHost = ancestorShadowHost->ownerShadowHost()) { |
if (ancestorShadowHost == shadowHost) |
return true; |
} |