| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index d23d94347cb31198d50b792823a59d362b166b1c..1ea95155d3a19aa7883d153b17e3c14e86fbdfb3 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -879,9 +879,8 @@ void Element::attributeChanged(const QualifiedName& name, const AtomicString& ne
|
|
|
| inline void Element::attributeChangedFromParserOrByCloning(const QualifiedName& name, const AtomicString& newValue, AttributeModificationReason reason)
|
| {
|
| - if (name == isAttr) {
|
| - if (CustomElementRegistry* registry = document()->registry())
|
| - registry->didGiveTypeExtension(this);
|
| + if (RuntimeEnabledFeatures::customDOMElementsEnabled() && name == isAttr) {
|
| + document()->ensureCustomElementRegistry()->didGiveTypeExtension(this, newValue);
|
| }
|
| attributeChanged(name, newValue, reason);
|
| }
|
|
|