Index: sky/engine/core/dom/shadow/InsertionPoint.h |
diff --git a/sky/engine/core/dom/shadow/InsertionPoint.h b/sky/engine/core/dom/shadow/InsertionPoint.h |
index 005c583ee439631f8275998747fc5a0f92cb5aa3..82ade6bb884c169a271892b7d7bb7f6784648110 100644 |
--- a/sky/engine/core/dom/shadow/InsertionPoint.h |
+++ b/sky/engine/core/dom/shadow/InsertionPoint.h |
@@ -95,8 +95,6 @@ inline ElementShadow* shadowWhereNodeCanBeDistributed(const Node& node) |
Node* parent = node.parentNode(); |
if (!parent) |
return 0; |
- if (parent->isShadowRoot() && !toShadowRoot(parent)->isYoungest()) |
- return node.shadowHost()->shadow(); |
if (isActiveInsertionPoint(*parent)) |
return node.shadowHost()->shadow(); |
if (parent->isElementNode()) |