Miscellaneous rebase fixes.

This commit is contained in:
Emilio Cobos Álvarez 2021-02-25 18:05:08 +00:00
parent a5cb6c6927
commit a0c6628cf2

View file

@ -335,19 +335,14 @@ class Longhand(Property):
assert ( assert (
has_effect_on_gecko_scrollbars in [None, False, True] has_effect_on_gecko_scrollbars in [None, False, True]
and not style_struct.inherited and not style_struct.inherited
or (gecko_pref is None) == (has_effect_on_gecko_scrollbars is None)), ( or (gecko_pref is None) == (has_effect_on_gecko_scrollbars is None)
"Property " + name + ": has_effect_on_gecko_scrollbars must be " ), (
"specified, and must have a value of True or False, iff a " "Property "
"property is inherited and is behind a Gecko pref") + name
# For enabled_in, the setup is as follows: + ": has_effect_on_gecko_scrollbars must be "
# It needs to be one of the four values: ["", "ua", "chrome", "content"] + "specified, and must have a value of True or False, iff a "
# * "chrome" implies "ua", and implies that they're explicitly + "property is inherited and is behind a Gecko pref"
# enabled. )
# * "" implies the property will never be parsed.
# * "content" implies the property is accessible unconditionally,
# modulo a pref, set via servo_pref / gecko_pref.
assert enabled_in in ["", "ua", "chrome", "content"]
self.enabled_in = enabled_in
self.need_index = need_index self.need_index = need_index
self.gecko_ffi_name = gecko_ffi_name or "m" + self.camel_case self.gecko_ffi_name = gecko_ffi_name or "m" + self.camel_case
self.cast_type = cast_type self.cast_type = cast_type