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

Issue 1978703002: Factor and simplify generation of the lookup trie used for HTMLLookupTrie. (Closed)

Created:
4 years, 7 months ago by meade_UTC10
Modified:
4 years, 7 months ago
Reviewers:
Timothy Loh
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Factor and simplify generation of the lookup trie used for HTMLLookupTrie. This is in preparation for making more classes use the lookup trie. Difference before and after for HTMLElementLookupTrie.cpp is here: https://www.diffchecker.com/lqhiueko BUG=606695 Committed: https://crrev.com/28c11f51b7b91165ea4c108afceb1ac30e066c35 Cr-Commit-Position: refs/heads/master@{#393478}

Patch Set 1 #

Patch Set 2 : Remove some unused imports #

Total comments: 6

Patch Set 3 : Adjust macros #

Patch Set 4 : Remove newlines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -93 lines) Patch
M third_party/WebKit/Source/build/scripts/make_element_lookup_trie.py View 1 3 chunks +5 lines, -61 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/scripts.gni View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/scripts.gypi View 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/templates/ElementLookupTrie.cpp.tmpl View 1 2 2 chunks +9 lines, -30 lines 0 comments Download
M third_party/WebKit/Source/build/scripts/templates/macros.tmpl View 1 2 3 1 chunk +49 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/build/scripts/trie_builder.py View 1 chunk +57 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/core_generated.gyp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (7 generated)
meade_UTC10
4 years, 7 months ago (2016-05-13 03:47:23 UTC) #3
Timothy Loh
https://codereview.chromium.org/1978703002/diff/20001/third_party/WebKit/Source/build/scripts/templates/macros.tmpl File third_party/WebKit/Source/build/scripts/templates/macros.tmpl (right): https://codereview.chromium.org/1978703002/diff/20001/third_party/WebKit/Source/build/scripts/templates/macros.tmpl#newcode32 third_party/WebKit/Source/build/scripts/templates/macros.tmpl:32: {% macro trie_switch(trie, index, return_macro, lowercase_data) %} Do you ...
4 years, 7 months ago (2016-05-13 04:49:17 UTC) #4
Timothy Loh
https://codereview.chromium.org/1978703002/diff/20001/third_party/WebKit/Source/build/scripts/templates/macros.tmpl File third_party/WebKit/Source/build/scripts/templates/macros.tmpl (right): https://codereview.chromium.org/1978703002/diff/20001/third_party/WebKit/Source/build/scripts/templates/macros.tmpl#newcode51 third_party/WebKit/Source/build/scripts/templates/macros.tmpl:51: {% macro trie_length_switch(length_tries, return_macro, default_return_value, lowercase_data) %} default_return_value isn't ...
4 years, 7 months ago (2016-05-13 05:41:34 UTC) #5
meade_UTC10
https://codereview.chromium.org/1978703002/diff/20001/third_party/WebKit/Source/build/scripts/templates/macros.tmpl File third_party/WebKit/Source/build/scripts/templates/macros.tmpl (right): https://codereview.chromium.org/1978703002/diff/20001/third_party/WebKit/Source/build/scripts/templates/macros.tmpl#newcode32 third_party/WebKit/Source/build/scripts/templates/macros.tmpl:32: {% macro trie_switch(trie, index, return_macro, lowercase_data) %} On 2016/05/13 ...
4 years, 7 months ago (2016-05-13 06:48:20 UTC) #6
Timothy Loh
lgtm I would prefer if break statements were paired with case statements, but I'll let ...
4 years, 7 months ago (2016-05-13 06:53:52 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1978703002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1978703002/60001
4 years, 7 months ago (2016-05-13 07:06:11 UTC) #11
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-13 08:40:07 UTC) #13
commit-bot: I haz the power
4 years, 7 months ago (2016-05-13 08:41:19 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/28c11f51b7b91165ea4c108afceb1ac30e066c35
Cr-Commit-Position: refs/heads/master@{#393478}

Powered by Google App Engine
This is Rietveld 408576698