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

Side by Side Diff: Source/build/scripts/make_css_property_names.py

Issue 51073002: Move HashTools.h to core/css (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « no previous file | Source/build/scripts/make_css_value_keywords.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 import os.path 3 import os.path
4 import re 4 import re
5 import subprocess 5 import subprocess
6 import sys 6 import sys
7 7
8 from in_file import InFile 8 from in_file import InFile
9 import in_generator 9 import in_generator
10 import license 10 import license
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 #endif // %(class_name)s_h 66 #endif // %(class_name)s_h
67 """ 67 """
68 68
69 GPERF_TEMPLATE = """ 69 GPERF_TEMPLATE = """
70 %%{ 70 %%{
71 %(license)s 71 %(license)s
72 72
73 #include "config.h" 73 #include "config.h"
74 #include "%(class_name)s.h" 74 #include "%(class_name)s.h"
75 #include "core/platform/HashTools.h" 75 #include "core/css/HashTools.h"
76 #include <string.h> 76 #include <string.h>
77 77
78 #include "wtf/ASCIICType.h" 78 #include "wtf/ASCIICType.h"
79 #include "wtf/text/AtomicString.h" 79 #include "wtf/text/AtomicString.h"
80 #include "wtf/text/WTFString.h" 80 #include "wtf/text/WTFString.h"
81 81
82 namespace WebCore { 82 namespace WebCore {
83 static const char propertyNameStringsPool[] = { 83 static const char propertyNameStringsPool[] = {
84 %(property_name_strings)s 84 %(property_name_strings)s
85 }; 85 };
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 'internal_properties': '\n'.join(map(self._case_properties, filter(l ambda property: property['is_internal'], self._properties))), 248 'internal_properties': '\n'.join(map(self._case_properties, filter(l ambda property: property['is_internal'], self._properties))),
249 } 249 }
250 # FIXME: If we could depend on Python 2.7, we would use subprocess.check _output 250 # FIXME: If we could depend on Python 2.7, we would use subprocess.check _output
251 gperf_args = ['gperf', '--key-positions=*', '-P', '-D', '-n', '-s', '2'] 251 gperf_args = ['gperf', '--key-positions=*', '-P', '-D', '-n', '-s', '2']
252 gperf = subprocess.Popen(gperf_args, stdin=subprocess.PIPE, stdout=subpr ocess.PIPE) 252 gperf = subprocess.Popen(gperf_args, stdin=subprocess.PIPE, stdout=subpr ocess.PIPE)
253 return gperf.communicate(gperf_input)[0] 253 return gperf.communicate(gperf_input)[0]
254 254
255 255
256 if __name__ == "__main__": 256 if __name__ == "__main__":
257 in_generator.Maker(CSSPropertiesWriter).main(sys.argv) 257 in_generator.Maker(CSSPropertiesWriter).main(sys.argv)
OLDNEW
« no previous file with comments | « no previous file | Source/build/scripts/make_css_value_keywords.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698