mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Tidy
This commit is contained in:
parent
bf8edd1596
commit
515c5ef540
3 changed files with 5 additions and 7 deletions
|
@ -124,11 +124,9 @@ class PropertiesData(object):
|
|||
self.style_structs.append(style_struct)
|
||||
self.current_style_struct = style_struct
|
||||
|
||||
|
||||
def active_style_structs(self):
|
||||
return [s for s in self.style_structs if s.additional_methods or s.longhands]
|
||||
|
||||
|
||||
def switch_to_style_struct(self, name):
|
||||
for style_struct in self.style_structs:
|
||||
if style_struct.trait_name == name:
|
||||
|
@ -138,7 +136,7 @@ class PropertiesData(object):
|
|||
|
||||
def declare_longhand(self, name, products="gecko servo", **kwargs):
|
||||
products = products.split()
|
||||
if not self.product in products:
|
||||
if self.product not in products:
|
||||
return
|
||||
|
||||
longand = Longhand(self.current_style_struct, name, **kwargs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue