Add a predefined Number type.

This commit is contained in:
Cameron McCormack 2016-05-01 18:56:28 +10:00
parent d71e5c8b3d
commit 3255bb809e
2 changed files with 39 additions and 1 deletions

View file

@ -295,7 +295,7 @@ impl Debug for ${style_struct.gecko_ffi_name} {
# These are booleans.
force_stub += ["page-break-after", "page-break-before"]
simple_types = ["Opacity"]
simple_types = ["Number", "Opacity"]
keyword_longhands = [x for x in longhands if x.keyword and not x.name in force_stub]
simple_longhands = [x for x in longhands