| Index: sky/engine/core/dom/custom/CustomElementRegistry.cpp
|
| diff --git a/sky/engine/core/dom/custom/CustomElementRegistry.cpp b/sky/engine/core/dom/custom/CustomElementRegistry.cpp
|
| index 81e1adba4ed509aa5f3c7e820be6e0312e6118f6..ab3839d83c127db291f79e8768037c04e9c6ff99 100644
|
| --- a/sky/engine/core/dom/custom/CustomElementRegistry.cpp
|
| +++ b/sky/engine/core/dom/custom/CustomElementRegistry.cpp
|
| @@ -79,7 +79,7 @@ CustomElementDefinition* CustomElementRegistry::registerElement(Document* docume
|
| return 0;
|
| }
|
|
|
| - if (m_registeredTypeNames.contains(type)) {
|
| + if (m_definitions.contains(type)) {
|
| CustomElementException::throwException(CustomElementException::TypeAlreadyRegistered, type, exceptionState);
|
| return 0;
|
| }
|
| @@ -99,14 +99,13 @@ CustomElementDefinition* CustomElementRegistry::registerElement(Document* docume
|
| return 0;
|
| }
|
|
|
| - const CustomElementDescriptor descriptor(type, tagName.localName());
|
| + const CustomElementDescriptor descriptor(tagName.localName());
|
| RefPtr<CustomElementDefinition> definition = CustomElementDefinition::create(descriptor, lifecycleCallbacks);
|
|
|
| if (!constructorBuilder->createConstructor(document, definition.get(), exceptionState))
|
| return 0;
|
|
|
| m_definitions.add(descriptor, definition);
|
| - m_registeredTypeNames.add(descriptor.type());
|
|
|
| if (!constructorBuilder->didRegisterDefinition(definition.get())) {
|
| CustomElementException::throwException(CustomElementException::ContextDestroyedRegisteringDefinition, type, exceptionState);
|
|
|