| OLD | NEW |
| 1 {% from "macros.tmpl" import license %} | 1 {% from "macros.tmpl" import license %} |
| 2 {{ license() }} | 2 {{ license() }} |
| 3 | 3 |
| 4 #include "{{namespace}}ElementFactory.h" | 4 #include "{{namespace}}ElementFactory.h" |
| 5 | 5 |
| 6 #include "{{namespace}}Names.h" | 6 #include "{{namespace}}Names.h" |
| 7 {% for tag in tags|groupby('interface') %} | 7 {% for tag in tags|groupby('interface') %} |
| 8 #include "core/{{namespace|lower}}/{{tag[0]}}.h" | 8 #include "core/{{namespace|lower}}/{{tag[0]}}.h" |
| 9 {% endfor %} | 9 {% endfor %} |
| 10 {% if fallback_interface %} | 10 {% if fallback_interface %} |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 if (flags != CreatedByCreateElement && CustomElement::shouldCreateCustomElem
ent(localName)) { | 98 if (flags != CreatedByCreateElement && CustomElement::shouldCreateCustomElem
ent(localName)) { |
| 99 QualifiedName tagName(nullAtom, localName, HTMLNames::xhtmlNamespaceURI)
; | 99 QualifiedName tagName(nullAtom, localName, HTMLNames::xhtmlNamespaceURI)
; |
| 100 if (flags & AsynchronousCustomElements) | 100 if (flags & AsynchronousCustomElements) |
| 101 return CustomElement::createCustomElementAsync(document, tagName); | 101 return CustomElement::createCustomElementAsync(document, tagName); |
| 102 return CustomElement::createCustomElementSync(document, tagName); | 102 return CustomElement::createCustomElementSync(document, tagName); |
| 103 } | 103 } |
| 104 {% endif %} | 104 {% endif %} |
| 105 | 105 |
| 106 if (document.registrationContext() && V0CustomElement::isValidName(localName
)) { | 106 if (document.registrationContext() && V0CustomElement::isValidName(localName
)) { |
| 107 Element* element = document.registrationContext()->createCustomTagElemen
t(document, QualifiedName(nullAtom, localName, {{namespace_prefix}}NamespaceURI)
); | 107 Element* element = document.registrationContext()->createCustomTagElemen
t(document, QualifiedName(nullAtom, localName, {{namespace_prefix}}NamespaceURI)
); |
| 108 ASSERT_WITH_SECURITY_IMPLICATION(element->is{{namespace}}Element()); | 108 SECURITY_DCHECK(element->is{{namespace}}Element()); |
| 109 return to{{namespace}}Element(element); | 109 return to{{namespace}}Element(element); |
| 110 } | 110 } |
| 111 | 111 |
| 112 return {{fallback_interface}}::create(QualifiedName(nullAtom, localName, {{n
amespace_prefix}}NamespaceURI), document); | 112 return {{fallback_interface}}::create(QualifiedName(nullAtom, localName, {{n
amespace_prefix}}NamespaceURI), document); |
| 113 } | 113 } |
| 114 | 114 |
| 115 } // namespace blink | 115 } // namespace blink |
| OLD | NEW |