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

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

Issue 424983002: Stop using WebCore namespace in generated code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months 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 | Annotate | Revision Log
OLDNEW
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/ContextFeatures.h" 14 #include "core/dom/ContextFeatures.h"
15 #include "core/dom/custom/CustomElement.h" 15 #include "core/dom/custom/CustomElement.h"
16 #include "core/dom/custom/CustomElementRegistrationContext.h" 16 #include "core/dom/custom/CustomElementRegistrationContext.h"
17 #include "core/dom/Document.h" 17 #include "core/dom/Document.h"
18 #include "core/frame/Settings.h" 18 #include "core/frame/Settings.h"
19 #include "platform/RuntimeEnabledFeatures.h" 19 #include "platform/RuntimeEnabledFeatures.h"
20 #include "wtf/HashMap.h" 20 #include "wtf/HashMap.h"
21 21
22 namespace WebCore { 22 namespace blink {
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*,
30 {% endif %} 30 {% endif %}
31 bool createdByParser); 31 bool createdByParser);
32 32
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
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 blink
OLDNEW
« no previous file with comments | « Source/build/scripts/make_css_value_keywords.py ('k') | Source/build/scripts/templates/ElementFactory.h.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698