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

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

Issue 66643004: Remove QualifiedName argument from most HTMLElement::create functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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: Source/build/scripts/templates/ElementFactory.cpp.tmpl
diff --git a/Source/build/scripts/templates/ElementFactory.cpp.tmpl b/Source/build/scripts/templates/ElementFactory.cpp.tmpl
index f6c165106e9d56a71de7c46dc2e18f389fa9e550..8727114072b430e3379373249602ea89b025e008 100644
--- a/Source/build/scripts/templates/ElementFactory.cpp.tmpl
+++ b/Source/build/scripts/templates/ElementFactory.cpp.tmpl
@@ -51,7 +51,9 @@ static PassRefPtr<{{namespace}}Element> {{tag|symbol}}Constructor(
if (!RuntimeEnabledFeatures::{{tag.runtimeEnabled}}Enabled())
return {{fallback_interface}}::create(tagName, document);
{%- endif %}
- return {{tag.interface}}::create(tagName, document
+ return {{tag.interface}}::create(
+{%- if namespace != 'HTML' or tag.multipleTagNames -%} tagName, {% endif -%}
+ document
{%- if namespace == 'HTML' and tag.constructorNeedsFormElement %}, formElement{% endif -%}
{%- if tag.constructorNeedsCreatedByParser %}, createdByParser{% endif -%}
);

Powered by Google App Engine
This is Rietveld 408576698