| OLD | NEW |
| 1 {% from 'macros.tmpl' import trie_length_switch %} | 1 {% from 'macros.tmpl' import trie_length_switch %} |
| 2 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 2 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 | 5 |
| 6 #include "{{namespace}}ElementLookupTrie.h" | 6 #include "{{namespace}}ElementLookupTrie.h" |
| 7 | 7 |
| 8 #include "{{namespace}}Names.h" | 8 #include "{{namespace}}Names.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 using namespace {{namespace}}Names; | 12 using namespace {{namespace}}Names; |
| 13 | 13 |
| 14 StringImpl* lookup{{namespace}}Tag(const UChar* data, unsigned length) { | 14 StringImpl* lookup{{namespace}}Tag(const UChar* data, unsigned length) { |
| 15 DCHECK(data); | 15 DCHECK(data); |
| 16 DCHECK(length); | 16 DCHECK(length); |
| 17 {% macro trie_return_statement(tag) %}{{tag}}Tag.localName().impl(){% endmacro
%} | 17 {% macro trie_return_statement(tag) %}{{tag}}Tag.LocalName().Impl(){% endmacro
%} |
| 18 {{ trie_length_switch(length_tries, trie_return_statement, false) | indent(4)
}} | 18 {{ trie_length_switch(length_tries, trie_return_statement, false) | indent(4)
}} |
| 19 return nullptr; | 19 return nullptr; |
| 20 } | 20 } |
| 21 | 21 |
| 22 } // namespace blink | 22 } // namespace blink |
| OLD | NEW |