| OLD | NEW |
| 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 | 5 |
| 6 #include "{{namespace}}{{suffix}}Names.h" | 6 #include "{{namespace}}{{suffix}}Names.h" |
| 7 | 7 |
| 8 #include "wtf/StaticConstructors.h" | 8 #include "wtf/StaticConstructors.h" |
| 9 | 9 |
| 10 namespace WebCore { | 10 namespace blink { |
| 11 namespace {{namespace}}Names { | 11 namespace {{namespace}}Names { |
| 12 | 12 |
| 13 using namespace WTF; | 13 using namespace WTF; |
| 14 | 14 |
| 15 {% for entry in entries|sort %} | 15 {% for entry in entries|sort %} |
| 16 {% filter enable_conditional(entry.Conditional) %} | 16 {% filter enable_conditional(entry.Conditional) %} |
| 17 DEFINE_GLOBAL(AtomicString, {{entry|symbol}}) | 17 DEFINE_GLOBAL(AtomicString, {{entry|symbol}}) |
| 18 {% endfilter %} | 18 {% endfilter %} |
| 19 {% endfor %} | 19 {% endfor %} |
| 20 | 20 |
| 21 void init{{suffix}}() | 21 void init{{suffix}}() |
| 22 { | 22 { |
| 23 {% for entry in entries|sort %} | 23 {% for entry in entries|sort %} |
| 24 {% filter enable_conditional(entry.Conditional) %} | 24 {% filter enable_conditional(entry.Conditional) %} |
| 25 StringImpl* {{entry|symbol}}Impl = StringImpl::createStatic("{{entry|cpp_nam
e}}", {{entry|cpp_name|length}}, {{entry|cpp_name|hash}}); | 25 StringImpl* {{entry|symbol}}Impl = StringImpl::createStatic("{{entry|cpp_nam
e}}", {{entry|cpp_name|length}}, {{entry|cpp_name|hash}}); |
| 26 {% endfilter %} | 26 {% endfilter %} |
| 27 {% endfor %} | 27 {% endfor %} |
| 28 | 28 |
| 29 {% for entry in entries|sort %} | 29 {% for entry in entries|sort %} |
| 30 {% filter enable_conditional(entry.Conditional) %} | 30 {% filter enable_conditional(entry.Conditional) %} |
| 31 new ((void*)&{{entry|symbol}}) AtomicString({{entry|symbol}}Impl); | 31 new ((void*)&{{entry|symbol}}) AtomicString({{entry|symbol}}Impl); |
| 32 {% endfilter %} | 32 {% endfilter %} |
| 33 {% endfor %} | 33 {% endfor %} |
| 34 } | 34 } |
| 35 | 35 |
| 36 } // {{namespace}}Names | 36 } // {{namespace}}Names |
| 37 } // WebCore | 37 } // namespace blink |
| OLD | NEW |