| OLD | NEW |
| 1 {% from "macros.tmpl" import license %} | 1 {% from "macros.tmpl" import license %} |
| 2 {{ license() }} | 2 {{ license() }} |
| 3 | 3 |
| 4 #include "config.h" | 4 #include "config.h" |
| 5 #include "{{namespace}}ElementFactory.h" | 5 #include "{{namespace}}ElementFactory.h" |
| 6 | 6 |
| 7 #include "{{namespace}}Names.h" | 7 #include "{{namespace}}Names.h" |
| 8 {% for tag in tags|sort %} | 8 {% for tag in tags|sort %} |
| 9 #include "core/{{namespace|lower}}/{{tag.interface}}.h" | 9 #include "core/{{namespace|lower}}/{{tag.interface}}.h" |
| 10 {% endfor %} | 10 {% endfor %} |
| 11 {% if fallback_interface %} | 11 {% if fallback_interface %} |
| 12 #include "core/{{namespace|lower}}/{{fallback_interface}}.h" | 12 #include "core/{{namespace|lower}}/{{fallback_interface}}.h" |
| 13 {% endif %} | 13 {% endif %} |
| 14 #include "core/dom/custom2/new_custom_element_registry.h" | 14 #include "core/dom/custom/custom_element_registry.h" |
| 15 #include "core/dom/Document.h" | 15 #include "core/dom/Document.h" |
| 16 #include "core/frame/Settings.h" | 16 #include "core/frame/Settings.h" |
| 17 #include "gen/sky/platform/RuntimeEnabledFeatures.h" | 17 #include "gen/sky/platform/RuntimeEnabledFeatures.h" |
| 18 #include "wtf/HashMap.h" | 18 #include "wtf/HashMap.h" |
| 19 | 19 |
| 20 namespace blink { | 20 namespace blink { |
| 21 | 21 |
| 22 using namespace {{namespace}}Names; | 22 using namespace {{namespace}}Names; |
| 23 | 23 |
| 24 typedef PassRefPtr<{{namespace}}Element> (*ConstructorFunction)( | 24 typedef PassRefPtr<{{namespace}}Element> (*ConstructorFunction)( |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 bool createdByParser) | 76 bool createdByParser) |
| 77 { | 77 { |
| 78 if (!g_constructors) | 78 if (!g_constructors) |
| 79 create{{namespace}}FunctionMap(); | 79 create{{namespace}}FunctionMap(); |
| 80 if (ConstructorFunction function = g_constructors->get(localName)) | 80 if (ConstructorFunction function = g_constructors->get(localName)) |
| 81 return function(document, createdByParser); | 81 return function(document, createdByParser); |
| 82 return document.elementRegistry().CreateElement(document, localName); | 82 return document.elementRegistry().CreateElement(document, localName); |
| 83 } | 83 } |
| 84 | 84 |
| 85 } // namespace blink | 85 } // namespace blink |
| OLD | NEW |