| Index: third_party/WebKit/Source/core/dom/custom/V0CustomElementCallbackInvocation.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/custom/V0CustomElementCallbackInvocation.cpp b/third_party/WebKit/Source/core/dom/custom/V0CustomElementCallbackInvocation.cpp
|
| index e494d750d4d874cde148f766e7703e70203436d5..4108cb5e3bd7be736a16e643f37cbf578035300b 100644
|
| --- a/third_party/WebKit/Source/core/dom/custom/V0CustomElementCallbackInvocation.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/custom/V0CustomElementCallbackInvocation.cpp
|
| @@ -106,7 +106,7 @@ private:
|
|
|
| void CreatedInvocation::dispatch(Element* element)
|
| {
|
| - if (element->inShadowIncludingDocument() && element->document().domWindow())
|
| + if (element->isConnected() && element->document().domWindow())
|
| V0CustomElementScheduler::scheduleCallback(callbacks(), element, V0CustomElementLifecycleCallbacks::AttachedCallback);
|
| callbacks()->created(element);
|
| }
|
|
|