| Index: third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp b/third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp
|
| index 7ab1920600ae68977e41b196674df57253793b81..d59859f24c1a7d4ee166a5060089387b78d8c4c8 100644
|
| --- a/third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp
|
| @@ -170,7 +170,7 @@ ShadowRoot& ElementShadow::addShadowRoot(Element& shadowHost, ShadowRootType typ
|
|
|
| ShadowRoot* shadowRoot = ShadowRoot::create(shadowHost.document(), type);
|
| shadowRoot->setParentOrShadowHostNode(&shadowHost);
|
| - shadowRoot->setParentTreeScope(shadowHost.treeScope());
|
| + shadowRoot->setParentTreeScope(shadowHost.treeScopeOrDocument());
|
| m_shadowRoots.push(shadowRoot);
|
| setNeedsDistributionRecalc();
|
|
|
|
|