| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index b7147bcdc8263c6523a9ad5185c958c065f00580..1ee75dcaedbae7677c093c55cacff558e3890514 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -953,7 +953,7 @@ void Element::attributeChanged(const QualifiedName& name, const AtomicString& ne
|
| inline void Element::attributeChangedFromParserOrByCloning(const QualifiedName& name, const AtomicString& newValue, AttributeModificationReason reason)
|
| {
|
| if (name == isAttr)
|
| - CustomElementRegistrationContext::setTypeExtension(this, newValue);
|
| + CustomElementRegistrationContext::setTypeExtension(this, newValue, reason == ModifiedDirectly ? CustomElementRegistrationContext::CreatedByParser : CustomElementRegistrationContext::CreatedByCloning);
|
| attributeChanged(name, newValue, reason);
|
| }
|
|
|
| @@ -1770,6 +1770,8 @@ void Element::finishParsingChildren()
|
| checkForSiblingStyleChanges(this, renderStyle(), true, lastChild(), 0, 0);
|
| if (StyleResolver* styleResolver = document()->styleResolverIfExists())
|
| styleResolver->popParentElement(this);
|
| + if (isCustomElement())
|
| + CustomElement::finishedParsingChildren(this);
|
| }
|
|
|
| #ifndef NDEBUG
|
|
|