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

Side by Side Diff: third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl

Issue 2458003002: Remove ASSERT_WITH_SECURITY_IMPLICATION. (Closed)
Patch Set: Minor formatting fix Created 4 years, 1 month 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 "{{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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698