| Index: third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.cpp
|
| index 72245da7b33fedbfa0c30e88044881ded386ef5e..e0567a9029abf1241defa983378311411da865fd 100644
|
| --- a/third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.cpp
|
| @@ -106,7 +106,7 @@ void CustomElementDefinition::upgrade(Element* element)
|
| if (!m_observedAttributes.isEmpty())
|
| enqueueAttributeChangedCallbackForAllAttributes(element);
|
|
|
| - if (element->inShadowIncludingDocument() && hasConnectedCallback())
|
| + if (element->isConnected() && hasConnectedCallback())
|
| enqueueConnectedCallback(element);
|
|
|
| m_constructionStack.append(element);
|
|
|