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 bf8acd6fe36eabce44f76102a7394b91cb2ee86e..3c950fd707b4ea66a9a89f7ea875688a1f562fc8 100644 |
--- a/third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.cpp |
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElementDefinition.cpp |
@@ -102,6 +102,8 @@ HTMLElement* CustomElementDefinition::createElementAsync(Document& document, con |
// https://html.spec.whatwg.org/multipage/scripting.html#concept-upgrade-an-element |
void CustomElementDefinition::upgrade(Element* element) |
{ |
+ DCHECK_EQ(element->getCustomElementState(), CustomElementState::Undefined); |
+ |
if (!m_observedAttributes.isEmpty()) |
enqueueAttributeChangedCallbackForAllAttributes(element); |