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

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

Issue 1213063004: Rename animatable to interpolable in CSSProperties.in (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/build/scripts/css_properties.py ('k') | Source/core/animation/StringKeyframe.cpp » ('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 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 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 import sys 6 import sys
7 7
8 import css_properties 8 import css_properties
9 import in_generator 9 import in_generator
10 from name_utilities import lower_first 10 from name_utilities import lower_first
11 import template_expander 11 import template_expander
12 12
13 13
14 class CSSPropertyMetadataWriter(css_properties.CSSProperties): 14 class CSSPropertyMetadataWriter(css_properties.CSSProperties):
15 filters = { 15 filters = {
16 'lower_first': lower_first, 16 'lower_first': lower_first,
17 } 17 }
18 18
19 def __init__(self, in_file_path): 19 def __init__(self, in_file_path):
20 super(CSSPropertyMetadataWriter, self).__init__(in_file_path) 20 super(CSSPropertyMetadataWriter, self).__init__(in_file_path)
21 self._outputs = {'CSSPropertyMetadata.cpp': self.generate_css_property_m etadata_cpp} 21 self._outputs = {'CSSPropertyMetadata.cpp': self.generate_css_property_m etadata_cpp}
22 22
23 @template_expander.use_jinja('CSSPropertyMetadata.cpp.tmpl', filters=filters ) 23 @template_expander.use_jinja('CSSPropertyMetadata.cpp.tmpl', filters=filters )
24 def generate_css_property_metadata_cpp(self): 24 def generate_css_property_metadata_cpp(self):
25 return { 25 return {
26 'properties': self._properties, 26 'properties': self._properties,
27 'switches': [('animatable', 'isAnimatableProperty'), 27 'switches': [('interpolable', 'isInterpolableProperty'),
28 ('inherited', 'isInheritedProperty'), 28 ('inherited', 'isInheritedProperty'),
29 ], 29 ],
30 'first_enum_value': self._first_enum_value, 30 'first_enum_value': self._first_enum_value,
31 } 31 }
32 32
33 33
34 if __name__ == '__main__': 34 if __name__ == '__main__':
35 in_generator.Maker(CSSPropertyMetadataWriter).main(sys.argv) 35 in_generator.Maker(CSSPropertyMetadataWriter).main(sys.argv)
OLDNEW
« no previous file with comments | « Source/build/scripts/css_properties.py ('k') | Source/core/animation/StringKeyframe.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698