| Index: sky/engine/build/scripts/templates/ElementFactory.cpp.tmpl
|
| diff --git a/sky/engine/build/scripts/templates/ElementFactory.cpp.tmpl b/sky/engine/build/scripts/templates/ElementFactory.cpp.tmpl
|
| index a351ec9ce466cd214ab7dfd423c9d26701e93beb..f8e6ca6fb957aaac38c73a2af6087ec5933c28fe 100644
|
| --- a/sky/engine/build/scripts/templates/ElementFactory.cpp.tmpl
|
| +++ b/sky/engine/build/scripts/templates/ElementFactory.cpp.tmpl
|
| @@ -81,8 +81,8 @@ PassRefPtr<{{namespace}}Element> {{namespace}}ElementFactory::create{{namespace}
|
| if (ConstructorFunction function = g_constructors->get(localName))
|
| return function(document, createdByParser);
|
|
|
| - if (document.registrationContext() && CustomElement::isValidName(localName)) {
|
| - RefPtr<Element> element = document.registrationContext()->createCustomTagElement(document, QualifiedName(localName));
|
| + if (CustomElement::isValidName(localName)) {
|
| + RefPtr<Element> element = document.registrationContext().createCustomTagElement(document, QualifiedName(localName));
|
| ASSERT_WITH_SECURITY_IMPLICATION(element->is{{namespace}}Element());
|
| return static_pointer_cast<{{namespace}}Element>(element.release());
|
| }
|
|
|