| 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 c4591086df199461c723131c2f40444eaf0ac08f..49aaa9873a385dff352d0c3e20d0dc768c0dd432 100644
|
| --- a/third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.cpp
|
| @@ -7,6 +7,7 @@
|
| #include "core/dom/Attr.h"
|
| #include "core/dom/ExceptionCode.h"
|
| #include "core/dom/custom/CustomElement.h"
|
| +#include "core/dom/custom/CustomElementAdoptedCallbackReaction.h"
|
| #include "core/dom/custom/CustomElementAttributeChangedCallbackReaction.h"
|
| #include "core/dom/custom/CustomElementConnectedCallbackReaction.h"
|
| #include "core/dom/custom/CustomElementDisconnectedCallbackReaction.h"
|
| @@ -127,7 +128,8 @@ void CustomElementDefinition::upgrade(Element* element)
|
| return;
|
| }
|
|
|
| - CHECK(element->getCustomElementState() == CustomElementState::Custom);
|
| + element->setCustomElementState(CustomElementState::Custom);
|
| + element->setCustomElementDefinition(this);
|
| }
|
|
|
| bool CustomElementDefinition::hasAttributeChangedCallback(
|
| @@ -159,6 +161,12 @@ void CustomElementDefinition::enqueueDisconnectedCallback(Element* element)
|
| new CustomElementDisconnectedCallbackReaction(this));
|
| }
|
|
|
| +void CustomElementDefinition::enqueueAdoptedCallback(Element* element)
|
| +{
|
| + CustomElement::enqueue(element,
|
| + new CustomElementAdoptedCallbackReaction(this));
|
| +}
|
| +
|
| void CustomElementDefinition::enqueueAttributeChangedCallback(Element* element,
|
| const QualifiedName& name,
|
| const AtomicString& oldValue, const AtomicString& newValue)
|
|
|