style: Replace Gecko's hacky EXPERIMENTAL set with the same mechanism as servo.

We can remove the PREF_foo bits in a bit.
This commit is contained in:
Emilio Cobos Álvarez 2017-11-16 02:50:53 +01:00
parent 187d28c732
commit 2bd91d21d7
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
5 changed files with 19 additions and 27 deletions

View file

@ -206,6 +206,12 @@ class Longhand(object):
self.transitionable = False
self.animation_type = None
def experimental(self, product):
if product == "gecko":
return bool(self.gecko_pref)
return bool(self.servo_pref)
class Shorthand(object):
def __init__(self, name, sub_properties, spec=None, servo_pref=None, gecko_pref=None,
@ -255,6 +261,11 @@ class Shorthand(object):
animatable = property(get_animatable)
transitionable = property(get_transitionable)
def experimental(self, product):
if product == "gecko":
return bool(self.gecko_pref)
return bool(self.servo_pref)
class Alias(object):
def __init__(self, name, original):