Factor out opacity property to use an Opacity type.

This commit is contained in:
Cameron McCormack 2016-05-01 17:33:43 +10:00
parent d69763b0c1
commit 0f2dc53b0a
3 changed files with 35 additions and 41 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 = []
simple_types = ["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