| 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 "RuntimeEnabledFeatures.h" | |
| 8 #include "{{namespace}}Names.h" | 7 #include "{{namespace}}Names.h" |
| 9 {% for tag in tags|sort %} | 8 {% for tag in tags|sort %} |
| 10 #include "core/{{namespace|lower}}/{{tag.interface}}.h" | 9 #include "core/{{namespace|lower}}/{{tag.interface}}.h" |
| 11 {% endfor %} | 10 {% endfor %} |
| 12 {% if fallback_interface %} | 11 {% if fallback_interface %} |
| 13 #include "core/{{namespace|lower}}/{{fallback_interface}}.h" | 12 #include "core/{{namespace|lower}}/{{fallback_interface}}.h" |
| 14 {% endif %} | 13 {% endif %} |
| 15 #include "core/dom/ContextFeatures.h" | 14 #include "core/dom/ContextFeatures.h" |
| 16 #include "core/dom/custom/CustomElement.h" | 15 #include "core/dom/custom/CustomElement.h" |
| 17 #include "core/dom/custom/CustomElementRegistrationContext.h" | 16 #include "core/dom/custom/CustomElementRegistrationContext.h" |
| 18 #include "core/dom/Document.h" | 17 #include "core/dom/Document.h" |
| 19 #include "core/frame/Settings.h" | 18 #include "core/frame/Settings.h" |
| 19 #include "platform/RuntimeEnabledFeatures.h" |
| 20 #include "wtf/HashMap.h" | 20 #include "wtf/HashMap.h" |
| 21 | 21 |
| 22 namespace WebCore { | 22 namespace WebCore { |
| 23 | 23 |
| 24 using namespace {{namespace}}Names; | 24 using namespace {{namespace}}Names; |
| 25 | 25 |
| 26 typedef PassRefPtrWillBeRawPtr<{{namespace}}Element> (*ConstructorFunction)( | 26 typedef PassRefPtrWillBeRawPtr<{{namespace}}Element> (*ConstructorFunction)( |
| 27 Document&, | 27 Document&, |
| 28 {% if namespace == 'HTML' %} | 28 {% if namespace == 'HTML' %} |
| 29 HTMLFormElement*, | 29 HTMLFormElement*, |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 if (document.registrationContext() && CustomElement::isValidName(localName))
{ | 99 if (document.registrationContext() && CustomElement::isValidName(localName))
{ |
| 100 RefPtrWillBeRawPtr<Element> element = document.registrationContext()->cr
eateCustomTagElement(document, QualifiedName(nullAtom, localName, {{namespace_pr
efix}}NamespaceURI)); | 100 RefPtrWillBeRawPtr<Element> element = document.registrationContext()->cr
eateCustomTagElement(document, QualifiedName(nullAtom, localName, {{namespace_pr
efix}}NamespaceURI)); |
| 101 ASSERT_WITH_SECURITY_IMPLICATION(element->is{{namespace}}Element()); | 101 ASSERT_WITH_SECURITY_IMPLICATION(element->is{{namespace}}Element()); |
| 102 return static_pointer_cast<{{namespace}}Element>(element.release()); | 102 return static_pointer_cast<{{namespace}}Element>(element.release()); |
| 103 } | 103 } |
| 104 | 104 |
| 105 return {{fallback_interface}}::create(QualifiedName(nullAtom, localName, {{n
amespace_prefix}}NamespaceURI), document); | 105 return {{fallback_interface}}::create(QualifiedName(nullAtom, localName, {{n
amespace_prefix}}NamespaceURI), document); |
| 106 } | 106 } |
| 107 | 107 |
| 108 } // namespace WebCore | 108 } // namespace WebCore |
| OLD | NEW |