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

Side by Side Diff: Source/build/scripts/templates/ElementLookupTrie.cpp.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 #include "config.h" 4 #include "config.h"
5 #include "{{namespace}}ElementLookupTrie.h" 5 #include "{{namespace}}ElementLookupTrie.h"
6 6
7 #include "{{namespace}}Names.h" 7 #include "{{namespace}}Names.h"
8 8
9 namespace WebCore { 9 namespace WebCore {
10 10
11 using namespace {{namespace}}Names; 11 using namespace {{namespace}}Names;
12 12
13 StringImpl* lookup{{namespace}}Tag(const UChar* data, unsigned length) 13 StringImpl* lookup{{namespace}}Tag(const UChar* data, unsigned length)
14 { 14 {
15 ASSERT(data); 15 ASSERT(data);
16 ASSERT(length); 16 ASSERT(length);
17 switch (length) { 17 switch (length) {
18 {{body}} 18 {{body}}{# FIXME: use indent #}
19 {# FIXME: remove blank line #}
20
19 } 21 }
20 return 0; 22 return 0;
21 } 23 }
22 24
23 } // WebCore 25 } // WebCore
OLDNEW
« no previous file with comments | « Source/build/scripts/templates/ElementFactory.h.tmpl ('k') | Source/build/scripts/templates/ElementTypeHelpers.h.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698