| 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 47abffadedbc6fac1b98ccf3d37e20c85b984235..3d7cac9cd7725cc49b271aedc2b13e09b8ff8728 100644
|
| --- a/third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl
|
| +++ b/third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl
|
| @@ -43,7 +43,7 @@ static {{namespace}}Element* {{tag|symbol}}Constructor(
|
| return {{tag.interface}}::create(
|
| {%- if tag.multipleTagNames %}{{tag|symbol}}Tag, {% endif -%}
|
| document
|
| - {%- if tag.constructorNeedsCreatedByParser %}, flags & CreatedByParser{% endif -%}
|
| + {%- if tag.constructorNeedsCreatedByParser %}, flags & kCreatedByParser{% endif -%}
|
| );
|
| }
|
| {% endfor %}
|
| @@ -82,9 +82,9 @@ static void create{{namespace}}FunctionMap() {
|
| // TODO(dominicc): When the HTML parser can pass an error
|
| // reporting ExceptionState, and "v0" custom elements have been
|
| // removed, consolidate custom element creation into one place.
|
| - if (flags != CreatedByCreateElement && CustomElement::shouldCreateCustomElement(localName)) {
|
| - QualifiedName tagName(nullAtom, localName, HTMLNames::xhtmlNamespaceURI);
|
| - if (flags & AsynchronousCustomElements)
|
| + if (flags != kCreatedByCreateElement && CustomElement::shouldCreateCustomElement(localName)) {
|
| + QualifiedName tagName(g_null_atom, localName, HTMLNames::xhtmlNamespaceURI);
|
| + if (flags & kAsynchronousCustomElements)
|
| return CustomElement::createCustomElementAsync(document, tagName);
|
| return CustomElement::createCustomElementSync(document, tagName);
|
| }
|
| @@ -93,12 +93,12 @@ static void create{{namespace}}FunctionMap() {
|
| if (document.registrationContext() &&
|
| V0CustomElement::isValidName(localName)) {
|
| Element* element = document.registrationContext()->createCustomTagElement(
|
| - document, QualifiedName(nullAtom, localName, {{namespace_prefix}}NamespaceURI));
|
| + document, QualifiedName(g_null_atom, localName, {{namespace_prefix}}NamespaceURI));
|
| SECURITY_DCHECK(element->is{{namespace}}Element());
|
| return to{{namespace}}Element(element);
|
| }
|
|
|
| - return {{fallback_interface}}::create(QualifiedName(nullAtom, localName, {{namespace_prefix}}NamespaceURI), document);
|
| + return {{fallback_interface}}::create(QualifiedName(g_null_atom, localName, {{namespace_prefix}}NamespaceURI), document);
|
| }
|
|
|
| } // namespace blink
|
|
|