| Index: third_party/WebKit/Source/core/dom/custom/CustomElementCallbackInvocation.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElementCallbackInvocation.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElementCallbackInvocation.cpp
|
| index 1a1c7afc83d1dec7adab267a98cbf32cd671aaab..cb12566238d31f0e6bf5a1739814c784fbb87237 100644
|
| --- a/third_party/WebKit/Source/core/dom/custom/CustomElementCallbackInvocation.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/custom/CustomElementCallbackInvocation.cpp
|
| @@ -106,7 +106,7 @@ private:
|
|
|
| void CreatedInvocation::dispatch(Element* element)
|
| {
|
| - if (element->inDocument() && element->document().domWindow())
|
| + if (element->inShadowIncludingDocument() && element->document().domWindow())
|
| CustomElementScheduler::scheduleCallback(callbacks(), element, CustomElementLifecycleCallbacks::AttachedCallback);
|
| callbacks()->created(element);
|
| }
|
|
|