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

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

Issue 2288653002: Make custom element name checks faster and fewer (Closed)
Patch Set: Lift the is8Bit check. Created 4 years, 3 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
OLDNEW
1 {% from "macros.tmpl" import license %} 1 {% from "macros.tmpl" import license %}
2 {{ license() }} 2 {{ license() }}
3 3
4 #ifndef {{namespace}}ElementFactory_h 4 #ifndef {{namespace}}ElementFactory_h
5 #define {{namespace}}ElementFactory_h 5 #define {{namespace}}ElementFactory_h
6 6
7 #include "core/dom/Document.h" 7 #include "core/dom/Document.h"
8 #include "platform/heap/Handle.h" 8 #include "platform/heap/Handle.h"
9 #include "wtf/Forward.h" 9 #include "wtf/Forward.h"
10 #include "wtf/PassRefPtr.h" 10 #include "wtf/PassRefPtr.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class Document; 14 class Document;
15 class {{namespace}}Element; 15 class {{namespace}}Element;
16 {% if namespace == 'HTML' %} 16 {% if namespace == 'HTML' %}
17 class ExceptionState;
17 class HTMLFormElement; 18 class HTMLFormElement;
18 {% endif %} 19 {% endif %}
19 20
20 class {{namespace}}ElementFactory { 21 class {{namespace}}ElementFactory {
21 public: 22 public:
22 static {{namespace}}Element* create{{namespace}}Element( 23 static {{namespace}}Element* create{{namespace}}Element(
23 const AtomicString& localName, 24 const AtomicString& localName,
24 Document&, 25 Document&,
25 {% if namespace == 'HTML' %} 26 {% if namespace == 'HTML' %}
26 HTMLFormElement* = 0, 27 HTMLFormElement* = 0,
28 ExceptionState* = 0,
kouhei (in TOK) 2016/08/29 06:59:55 nullptr
27 {% endif %} 29 {% endif %}
28 CreateElementFlags flags = CreatedByParser); 30 CreateElementFlags flags = CreatedByParser);
29 }; 31 };
30 32
31 } // namespace blink 33 } // namespace blink
32 34
33 #endif 35 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698