mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Rustfmt and fix tidy on recent changes.
This commit is contained in:
parent
6eedebe2c8
commit
ed2e9ce482
16 changed files with 78 additions and 57 deletions
|
@ -165,9 +165,11 @@ def parse_property_aliases(alias_list):
|
|||
result.append((name, pref))
|
||||
return result
|
||||
|
||||
|
||||
def to_phys(name, logical, physical):
|
||||
return name.replace(logical, physical).replace("inset-", "")
|
||||
|
||||
|
||||
class Longhand(object):
|
||||
def __init__(self, style_struct, name, spec=None, animation_value_type=None, keyword=None,
|
||||
predefined_type=None, servo_pref=None, gecko_pref=None,
|
||||
|
@ -247,7 +249,7 @@ class Longhand(object):
|
|||
def all_physical_mapped_properties(self):
|
||||
assert self.logical
|
||||
candidates = [s for s in LOGICAL_SIDES + LOGICAL_SIZES + LOGICAL_CORNERS
|
||||
if s in self.name] + [s for s in LOGICAL_AXES if self.name.endswith(s)]
|
||||
if s in self.name] + [s for s in LOGICAL_AXES if self.name.endswith(s)]
|
||||
assert(len(candidates) == 1)
|
||||
logical_side = candidates[0]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue