| Index: Source/core/scripts/make_names.pl
|
| diff --git a/Source/core/scripts/make_names.pl b/Source/core/scripts/make_names.pl
|
| index 4f01448b7325f79aa244d4c2421bb5982eef7bba..2e51b1cab58b9bf582a40c8039ef20e3bd70b6ac 100755
|
| --- a/Source/core/scripts/make_names.pl
|
| +++ b/Source/core/scripts/make_names.pl
|
| @@ -837,7 +837,7 @@ print F <<END
|
| #include "RuntimeEnabledFeatures.h"
|
| #include "Settings.h"
|
|
|
| -#include "CustomElementRegistry.h"
|
| +#include "CustomElementRegistrationContext.h"
|
|
|
| namespace WebCore {
|
|
|
| @@ -891,8 +891,8 @@ print F <<END
|
| if (!document)
|
| return 0;
|
|
|
| - if (RuntimeEnabledFeatures::customDOMElementsEnabled() && CustomElementRegistry::isCustomTagName(qName.localName())) {
|
| - RefPtr<Element> element = document->ensureCustomElementRegistry()->createCustomTagElement(document, qName);
|
| + if (CustomElementRegistrationContext::isCustomTagName(qName.localName())) {
|
| + RefPtr<Element> element = document->registrationContext()->createCustomTagElement(document, qName);
|
| ASSERT_WITH_SECURITY_IMPLICATION(element->is$parameters{namespace}Element());
|
| return static_pointer_cast<$parameters{namespace}Element>(element.release());
|
| }
|
| @@ -1148,7 +1148,7 @@ END
|
|
|
| Create$parameters{namespace}ElementWrapperFunction createWrapperFunction = map.get(element->localName().impl());
|
| if (element->isCustomElement())
|
| - return CustomElementWrapper<$parameters{namespace}Element>::wrap(element, creationContext, isolate, createWrapperFunction);
|
| + return CustomElementWrapper<$parameters{namespace}Element, V8$parameters{namespace}Element>::wrap(element, creationContext, isolate, createWrapperFunction);
|
| if (createWrapperFunction)
|
| {
|
| END
|
|
|