| 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 63728fe7f387f2ae67179775f55c264fd2678f2b..143d38db11eda3e56689e40eab1c90b2235fcd5b 100644
|
| --- a/third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl
|
| +++ b/third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl
|
| @@ -48,7 +48,7 @@ static RawPtr<{{namespace}}Element> {{tag|symbol}}Constructor(
|
| {%- if tag.multipleTagNames %}{{tag|symbol}}Tag, {% endif -%}
|
| document
|
| {%- if namespace == 'HTML' and tag.constructorNeedsFormElement %}, formElement{% endif -%}
|
| - {%- if tag.constructorNeedsCreatedByParser %}, createdByParser{% endif -%}
|
| + {%- if tag.constructorNeedsCreatedByParser %}, createdByParser ? ParserInserted : DefaultContext{% endif -%}
|
| );
|
| }
|
| {% endfor %}
|
| @@ -84,7 +84,7 @@ RawPtr<{{namespace}}Element> {{namespace}}ElementFactory::create{{namespace}}Ele
|
| if (!g_constructors)
|
| create{{namespace}}FunctionMap();
|
| if (ConstructorFunction function = g_constructors->get(localName))
|
| - return function(document, {% if namespace == 'HTML' %}formElement, {% endif %}createdByParser);
|
| + return function(document, {% if namespace == 'HTML' %}formElement, {% endif %}createdByParser ? ParserInserted : DefaultContext);
|
|
|
| if (document.registrationContext() && CustomElement::isValidName(localName)) {
|
| RawPtr<Element> element = document.registrationContext()->createCustomTagElement(document, QualifiedName(nullAtom, localName, {{namespace_prefix}}NamespaceURI));
|
|
|