Index: Source/core/dom/shadow/ElementShadow.cpp |
diff --git a/Source/core/dom/shadow/ElementShadow.cpp b/Source/core/dom/shadow/ElementShadow.cpp |
index bebad50f004c6fac391e15fd7854d459049a452c..c666436ce16283d13b3db78bef7780c4c758d657 100644 |
--- a/Source/core/dom/shadow/ElementShadow.cpp |
+++ b/Source/core/dom/shadow/ElementShadow.cpp |
@@ -60,7 +60,7 @@ ShadowRoot* ElementShadow::addShadowRoot(Element* shadowHost, ShadowRoot::Shadow |
RefPtr<ShadowRoot> shadowRoot = ShadowRoot::create(&shadowHost->document(), type); |
shadowRoot->setParentOrShadowHostNode(shadowHost); |
- shadowRoot->setParentTreeScope(&shadowHost->treeScope()); |
+ shadowRoot->setParentTreeScope(shadowHost->treeScope().get()); |
m_shadowRoots.push(shadowRoot.get()); |
ChildNodeInsertionNotifier(shadowHost).notify(shadowRoot.get()); |
setNeedsDistributionRecalc(); |