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 #ifdef SKIP_STATIC_CONSTRUCTORS_ON_GCC | 6 #ifdef SKIP_STATIC_CONSTRUCTORS_ON_GCC |
7 #define {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS 1 | 7 #define {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS 1 |
8 #else | 8 #else |
9 #define QNAME_DEFAULT_CONSTRUCTOR 1 | 9 #define QNAME_DEFAULT_CONSTRUCTOR 1 |
10 #endif | 10 #endif |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 AtomicString {{namespace_prefix}}NS("{{namespace_uri}}", AtomicString::Const
ructFromLiteral); | 57 AtomicString {{namespace_prefix}}NS("{{namespace_uri}}", AtomicString::Const
ructFromLiteral); |
58 | 58 |
59 // Namespace | 59 // Namespace |
60 new ((void*)&{{namespace_prefix}}NamespaceURI) AtomicString({{namespace_pref
ix}}NS); | 60 new ((void*)&{{namespace_prefix}}NamespaceURI) AtomicString({{namespace_pref
ix}}NS); |
61 {% for name, tag_list in (tags + attrs)|groupby('name')|sort %} | 61 {% for name, tag_list in (tags + attrs)|groupby('name')|sort %} |
62 StringImpl* {{tag_list[0]|symbol}}Impl = StringImpl::createStatic("{{name}}"
, {{name|length}}, {{name|hash}}); | 62 StringImpl* {{tag_list[0]|symbol}}Impl = StringImpl::createStatic("{{name}}"
, {{name|length}}, {{name|hash}}); |
63 {% endfor %} | 63 {% endfor %} |
64 | 64 |
65 // Tags | 65 // Tags |
66 {% for tag in tags|sort %} | 66 {% for tag in tags|sort %} |
67 createQualifiedName((void*)&{{tag|symbol}}Tag, {{tag|symbol}}Impl, {{namespa
ce_prefix}}NS); | 67 QualifiedName::createStatic((void*)&{{tag|symbol}}Tag, {{tag|symbol}}Impl, {
{namespace_prefix}}NS); |
68 {% endfor %} | 68 {% endfor %} |
69 | 69 |
70 // Attrs | 70 // Attrs |
71 {% for attr in attrs|sort %} | 71 {% for attr in attrs|sort %} |
72 {% if use_namespace_for_attrs %} | 72 {% if use_namespace_for_attrs %} |
73 createQualifiedName((void*)&{{attr|symbol}}Attr, {{attr|symbol}}Impl, {{name
space_prefix}}NS); | 73 QualifiedName::createStatic((void*)&{{attr|symbol}}Attr, {{attr|symbol}}Impl
, {{namespace_prefix}}NS); |
74 {% else %} | 74 {% else %} |
75 createQualifiedName((void*)&{{attr|symbol}}Attr, {{attr|symbol}}Impl); | 75 QualifiedName::createStatic((void*)&{{attr|symbol}}Attr, {{attr|symbol}}Impl
); |
76 {% endif %} | 76 {% endif %} |
77 {% endfor %} | 77 {% endfor %} |
78 } | 78 } |
79 | 79 |
80 } // {{namespace}} | 80 } // {{namespace}} |
81 } // WebCore | 81 } // WebCore |
OLD | NEW |