Index: third_party/WebKit/Source/core/css/resolver/ElementResolveContext.cpp |
diff --git a/third_party/WebKit/Source/core/css/resolver/ElementResolveContext.cpp b/third_party/WebKit/Source/core/css/resolver/ElementResolveContext.cpp |
index 469d91158134442b42f9d408f43e125ef0df3013..409465b23851def85037e02053ec14f19efa541f 100644 |
--- a/third_party/WebKit/Source/core/css/resolver/ElementResolveContext.cpp |
+++ b/third_party/WebKit/Source/core/css/resolver/ElementResolveContext.cpp |
@@ -45,7 +45,7 @@ ElementResolveContext::ElementResolveContext(Element& element) |
, m_distributedToInsertionPoint(false) |
{ |
LayoutTreeBuilderTraversal::ParentDetails parentDetails; |
- m_parentNode = isActiveInsertionPoint(element) ? nullptr : LayoutTreeBuilderTraversal::parent(element, &parentDetails); |
+ m_parentNode = element.isSlotOrActiveInsertionPoint() ? nullptr : LayoutTreeBuilderTraversal::parent(element, &parentDetails); |
m_distributedToInsertionPoint = parentDetails.insertionPoint(); |
const Document& document = element.document(); |