mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Appease tidy.
This commit is contained in:
parent
9118dd838e
commit
658b8e3312
2 changed files with 4 additions and 4 deletions
|
@ -245,9 +245,8 @@ class Longhand(object):
|
||||||
logical_side = s
|
logical_side = s
|
||||||
assert logical_side
|
assert logical_side
|
||||||
physical = PHYSICAL_SIDES if logical_side in LOGICAL_SIDES else PHYSICAL_SIZES
|
physical = PHYSICAL_SIDES if logical_side in LOGICAL_SIDES else PHYSICAL_SIZES
|
||||||
return [self.name.replace(logical_side, physical_side).replace("inset-", "") \
|
return [self.name.replace(logical_side, physical_side).replace("inset-", "")
|
||||||
for physical_side in physical]
|
for physical_side in physical]
|
||||||
|
|
||||||
|
|
||||||
def experimental(self, product):
|
def experimental(self, product):
|
||||||
if product == "gecko":
|
if product == "gecko":
|
||||||
|
|
|
@ -2004,7 +2004,8 @@ impl PropertyDeclaration {
|
||||||
% if prop.logical:
|
% if prop.logical:
|
||||||
% for physical_property in prop.all_physical_mapped_properties():
|
% for physical_property in prop.all_physical_mapped_properties():
|
||||||
% if data.longhands_by_name[physical_property].specified_type() != prop.specified_type():
|
% if data.longhands_by_name[physical_property].specified_type() != prop.specified_type():
|
||||||
<% raise "Logical property %s should share specified value with physical property %s" % (prop.name, physical_property) %>
|
<% raise "Logical property %s should share specified value with physical property %s" % \
|
||||||
|
(prop.name, physical_property) %>
|
||||||
% endif
|
% endif
|
||||||
% endfor
|
% endfor
|
||||||
% endif
|
% endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue