summaryrefslogtreecommitdiff
path: root/chromium/third_party/WebKit/Source/build/scripts/templates/ElementLookupTrie.cpp.tmpl
blob: 36caa9cbcb954132e0ba75d5a6912405e619e41f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{% from "macros.tmpl" import license -%}
{{ license() }}

#include "config.h"
#include "{{namespace}}ElementLookupTrie.h"

#include "{{namespace}}Names.h"

namespace WebCore {

using namespace {{namespace}}Names;

StringImpl* lookup{{namespace}}Tag(const UChar* data, unsigned length)
{
    ASSERT(data);
    ASSERT(length);
    switch (length) {
{{body}}
    }
    return 0;
}

} // WebCore