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

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

Issue 66533005: Remove mapToTagName support from ElementFactory generation (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
« no previous file with comments | « Source/build/scripts/make_element_factory.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a7618849c380f85d73fdb6a07491a62106ba10f8 100644
--- a/Source/build/scripts/templates/ElementFactory.cpp.tmpl
+++ b/Source/build/scripts/templates/ElementFactory.cpp.tmpl
@@ -34,7 +34,7 @@ typedef HashMap<StringImpl*, ConstructorFunction> FunctionMap;
static FunctionMap* g_constructors = 0;
-{%- for tag in tags|sort if not tag.mapToTagName and not tag.noConstructor %}
+{%- for tag in tags|sort if not tag.noConstructor %}
static PassRefPtr<{{namespace}}Element> {{tag|symbol}}Constructor(
const QualifiedName& tagName,
Document& document,
@@ -58,13 +58,6 @@ static PassRefPtr<{{namespace}}Element> {{tag|symbol}}Constructor(
}
{%- endfor %}
-{%- for tag in tags|sort if tag.mapToTagName %}
-static PassRefPtr<HTMLElement> {{tag|symbol}}Constructor(const QualifiedName& tagName, Document& document, HTMLFormElement* formElement, bool createdByParser)
-{
- return {{tag.mapToTagName}}Constructor(QualifiedName(tagName.prefix(), {{tag.mapToTagName}}Tag.localName(), tagName.namespaceURI()), document, formElement, createdByParser);
-}
-{%- endfor %}
-
static void addTag(const QualifiedName& tag, ConstructorFunction func)
{
g_constructors->set(tag.localName().impl(), func);
« no previous file with comments | « Source/build/scripts/make_element_factory.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698