OLD | NEW |
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 Loading... |
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 |
OLD | NEW |