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

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

Issue 236673002: Simplify whitespace handling in build/ Jinja templates (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: One more FIXME Created 6 years, 8 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 #ifndef {{namespace}}ElementFactory_h 4 #ifndef {{namespace}}ElementFactory_h
5 #define {{namespace}}ElementFactory_h 5 #define {{namespace}}ElementFactory_h
6 6
7 #include "wtf/Forward.h" 7 #include "wtf/Forward.h"
8 #include "wtf/PassRefPtr.h" 8 #include "wtf/PassRefPtr.h"
9 9
10 namespace WebCore { 10 namespace WebCore {
11 11
12 class Document; 12 class Document;
13 class {{namespace}}Element; 13 class {{namespace}}Element;
14 14 {% if namespace == 'HTML' %}
15 {%- if namespace == 'HTML' %}
16 class HTMLFormElement; 15 class HTMLFormElement;
17 {%- endif %} 16 {% endif %}
18 17
19 class {{namespace}}ElementFactory { 18 class {{namespace}}ElementFactory {
20 public: 19 public:
21 static PassRefPtr<{{namespace}}Element> create{{namespace}}Element(const Ato micString& localName, 20 static PassRefPtr<{{namespace}}Element> create{{namespace}}Element(const Ato micString& localName,
22 Document& , 21 Document& ,
23 {%- if na mespace == 'HTML' %} 22 {% if nam espace == 'HTML' %}
24 HTMLFormE lement* = 0, 23 HTMLFormE lement* = 0,
25 {%- endif %} 24 {% endif %}
26 bool crea tedByParser = true); 25 bool crea tedByParser = true);
27 }; 26 };
28 27
29 } // WebCore 28 } // WebCore
30 29
31 #endif 30 #endif
OLDNEW
« no previous file with comments | « Source/build/scripts/templates/ElementFactory.cpp.tmpl ('k') | Source/build/scripts/templates/ElementLookupTrie.cpp.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698