Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(963)

Unified Diff: third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl

Issue 2611823003: ABANDONED CL: Changes to compile and pass tests after Big Blink Rename (excluding functions). (Closed)
Patch Set: Inducing merge conflicts to force human review and changes after rename. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698