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

Side by Side Diff: third_party/WebKit/Source/build/scripts/templates/ElementLookupTrie.cpp.tmpl

Issue 2329463004: ABANDONED CL: Changes needed to make things compile after running rewrite_to_chrome_style tool. (Closed)
Patch Set: Rebasing the fixes... Created 3 years, 10 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
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698