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

Side by Side Diff: sky/engine/build/scripts/templates/ElementFactory.cpp.tmpl

Issue 1206763002: Really remove config.h (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 {% from "macros.tmpl" import license %} 1 {% from "macros.tmpl" import license %}
2 {{ license() }} 2 {{ license() }}
3 3
4 #include "config.h"
5 #include "{{namespace}}ElementFactory.h" 4 #include "{{namespace}}ElementFactory.h"
6 5
7 #include "{{namespace}}Names.h" 6 #include "{{namespace}}Names.h"
8 {% for tag in tags|sort %} 7 {% for tag in tags|sort %}
9 #include "core/{{namespace|lower}}/{{tag.interface}}.h" 8 #include "core/{{namespace|lower}}/{{tag.interface}}.h"
10 {% endfor %} 9 {% endfor %}
11 {% if fallback_interface %} 10 {% if fallback_interface %}
12 #include "core/{{namespace|lower}}/{{fallback_interface}}.h" 11 #include "core/{{namespace|lower}}/{{fallback_interface}}.h"
13 {% endif %} 12 {% endif %}
14 #include "core/dom/custom/custom_element_registry.h" 13 #include "core/dom/custom/custom_element_registry.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 bool createdByParser) 75 bool createdByParser)
77 { 76 {
78 if (!g_constructors) 77 if (!g_constructors)
79 create{{namespace}}FunctionMap(); 78 create{{namespace}}FunctionMap();
80 if (ConstructorFunction function = g_constructors->get(localName)) 79 if (ConstructorFunction function = g_constructors->get(localName))
81 return function(document, createdByParser); 80 return function(document, createdByParser);
82 return document.elementRegistry().CreateElement(document, localName); 81 return document.elementRegistry().CreateElement(document, localName);
83 } 82 }
84 83
85 } // namespace blink 84 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698