| Index: third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl
|
| diff --git a/third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl b/third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl
|
| index 7b7e9def78679f001184fff8bb1d1f579f2e9a16..d8e96407835569f7fa29bd4e000178be6f044785 100644
|
| --- a/third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl
|
| +++ b/third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl
|
| @@ -90,8 +90,12 @@ static void create{{namespace}}FunctionMap()
|
| return function(document, {% if namespace == 'HTML' %}formElement, {% endif %}flags);
|
|
|
| {% if namespace == 'HTML' %}
|
| - if (CustomElement::shouldCreateCustomElement(document, localName))
|
| - return CustomElement::createCustomElement(document, localName, flags);
|
| + if (CustomElement::shouldCreateCustomElement(document, localName)) {
|
| + QualifiedName tagName(nullAtom, localName, HTMLNames::xhtmlNamespaceURI);
|
| + if (flags & AsynchronousCustomElements)
|
| + return CustomElement::createCustomElementAsync(document, tagName);
|
| + return CustomElement::createCustomElementSync(document, tagName);
|
| + }
|
| {% endif %}
|
|
|
| if (document.registrationContext() && V0CustomElement::isValidName(localName)) {
|
|
|