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 0b9b6f652cc9f76ac06c4fac59e5a568f75817d4..a9e7d5cd80b3ae9db6a1ff58feab377d277472db 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,7 @@ void CustomElementDefinition::upgrade(Element* element) |
return; |
} |
- element->setCustomElementState(CustomElementState::Custom); |
+ element->setCustomElementDefinition(this); |
} |
bool CustomElementDefinition::hasAttributeChangedCallback( |
@@ -159,6 +160,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) |