mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
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:
parent
187d28c732
commit
2bd91d21d7
5 changed files with 19 additions and 27 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue