style: Specify has_no_effect_on_gecko_scrollbars on inherited internal properties

Otherwise we assert due to the styles being different from the cached
ones, but it doesn't matter as these don't influence Gecko scrollbars.

Differential Revision: https://phabricator.services.mozilla.com/D117147
This commit is contained in:
Emilio Cobos Álvarez 2023-05-21 23:37:16 +02:00 committed by Oriol Brufau
parent f0a178b56a
commit 6d9580fef0
2 changed files with 8 additions and 2 deletions

View file

@ -340,13 +340,14 @@ class Longhand(Property):
assert (
has_effect_on_gecko_scrollbars in [None, False, True]
and not style_struct.inherited
or (gecko_pref is None) == (has_effect_on_gecko_scrollbars is None)
or (gecko_pref is None and enabled_in != "")
== (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 is inherited and is behind a Gecko pref"
+ "property is inherited and is behind a Gecko pref or internal"
)
self.need_index = need_index
self.gecko_ffi_name = gecko_ffi_name or "m" + self.camel_case