Index: Source/core/dom/shadow/ElementShadow.cpp |
diff --git a/Source/core/dom/shadow/ElementShadow.cpp b/Source/core/dom/shadow/ElementShadow.cpp |
index b0e71f1ceff88ba0cf5728e1c65b361df6e86e26..807aeabab367dea09b26da69ddc729063c0ecc0d 100644 |
--- a/Source/core/dom/shadow/ElementShadow.cpp |
+++ b/Source/core/dom/shadow/ElementShadow.cpp |
@@ -74,7 +74,7 @@ void ElementShadow::removeAllShadowRoots() |
void ElementShadow::attach() |
{ |
- ContentDistributor::ensureDistribution(youngestShadowRoot()); |
+ ContentDistributor::ensureDistribution(host()); |
for (ShadowRoot* root = youngestShadowRoot(); root; root = root->olderShadowRoot()) { |
if (!root->attached()) |