Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
index 3ea886106efca4f526a5fda0fc5bd860c6e43288..c73d883f7654837ba75aad4977a779f57dbe48f3 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp |
@@ -2774,7 +2774,7 @@ PassRefPtr<ComputedStyle> LayoutObject::getUncachedPseudoStyleFromParentOrShadow |
if (ShadowRoot* root = node()->containingShadowRoot()) { |
if (root->type() == ShadowRootType::UserAgent) { |
- if (Element* shadowHost = node()->shadowHost()) { |
+ if (Element* shadowHost = node()->ownerShadowHost()) { |
return shadowHost->layoutObject()->getUncachedPseudoStyle(PseudoStyleRequest(PseudoIdSelection)); |
} |
} |