| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2016 The Chromium Authors. All rights reserved. | 2 # Copyright 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 import math | 6 import math |
| 7 import sys | 7 import sys |
| 8 | 8 |
| 9 import json5_generator | 9 import json5_generator |
| 10 import template_expander | 10 import template_expander |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 # Aligns like double | 27 # Aligns like double |
| 28 'ScaleTransformOperation', 'RotateTransformOperation', 'TranslateTransformOp
eration', 'double', | 28 'ScaleTransformOperation', 'RotateTransformOperation', 'TranslateTransformOp
eration', 'double', |
| 29 # Aligns like a pointer (can be 32 or 64 bits) | 29 # Aligns like a pointer (can be 32 or 64 bits) |
| 30 'StyleMotionData', 'TransformOperations', 'Vector<CSSPropertyID>', 'AtomicSt
ring', 'DataRef', 'RefPtr', | 30 'StyleMotionData', 'TransformOperations', 'Vector<CSSPropertyID>', 'AtomicSt
ring', 'DataRef', 'RefPtr', |
| 31 'DataPersistent', 'Persistent', 'std::unique_ptr', | 31 'DataPersistent', 'Persistent', 'std::unique_ptr', |
| 32 'Vector<String>', 'Font', 'FillLayer', 'NinePieceImage', | 32 'Vector<String>', 'Font', 'FillLayer', 'NinePieceImage', |
| 33 # Aligns like float | 33 # Aligns like float |
| 34 'TransformOrigin', 'LengthBox', 'LengthSize', 'FloatSize', 'LengthPoint', 'L
ength', | 34 'TransformOrigin', 'LengthBox', 'LengthSize', 'FloatSize', 'LengthPoint', 'L
ength', |
| 35 'TextSizeAdjust', 'TabSize', 'float', | 35 'TextSizeAdjust', 'TabSize', 'float', |
| 36 # Aligns like int | 36 # Aligns like int |
| 37 'BorderValue', 'StyleColor', 'Color', 'LayoutUnit', 'LineClampValue', 'Outli
neValue', 'unsigned', 'int', | 37 'BorderValue', 'StyleColor', 'Color', 'LayoutUnit', 'LineClampValue', 'Outli
neValue', 'TouchAction', 'unsigned', 'int', |
| 38 # Aligns like short | 38 # Aligns like short |
| 39 'unsigned short', 'short', | 39 'unsigned short', 'short', |
| 40 # Aligns like char | 40 # Aligns like char |
| 41 'StyleSelfAlignmentData', 'StyleContentAlignmentData', 'uint8_t', 'char', | 41 'StyleSelfAlignmentData', 'StyleContentAlignmentData', 'uint8_t', 'char', |
| 42 # Aligns like bool | 42 # Aligns like bool |
| 43 'bool' | 43 'bool' |
| 44 ] | 44 ] |
| 45 | 45 |
| 46 # TODO(shend): Improve documentation and add docstrings. | 46 # TODO(shend): Improve documentation and add docstrings. |
| 47 | 47 |
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 | 520 |
| 521 @template_expander.use_jinja('ComputedStyleBaseConstants.h.tmpl') | 521 @template_expander.use_jinja('ComputedStyleBaseConstants.h.tmpl') |
| 522 def generate_base_computed_style_constants(self): | 522 def generate_base_computed_style_constants(self): |
| 523 return { | 523 return { |
| 524 'properties': self._properties, | 524 'properties': self._properties, |
| 525 'enums': self._generated_enums, | 525 'enums': self._generated_enums, |
| 526 } | 526 } |
| 527 | 527 |
| 528 if __name__ == '__main__': | 528 if __name__ == '__main__': |
| 529 json5_generator.Maker(ComputedStyleBaseWriter).main() | 529 json5_generator.Maker(ComputedStyleBaseWriter).main() |
| OLD | NEW |