зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1477883: Appease Servo's tidy lint. r=me
MozReview-Commit-ID: CqqndCexGKW
This commit is contained in:
Родитель
d2466a05c8
Коммит
1a53242e60
|
@ -245,9 +245,8 @@ class Longhand(object):
|
|||
logical_side = s
|
||||
assert logical_side
|
||||
physical = PHYSICAL_SIDES if logical_side in LOGICAL_SIDES else PHYSICAL_SIZES
|
||||
return [self.name.replace(logical_side, physical_side).replace("inset-", "") \
|
||||
for physical_side in physical]
|
||||
|
||||
return [self.name.replace(logical_side, physical_side).replace("inset-", "")
|
||||
for physical_side in physical]
|
||||
|
||||
def experimental(self, product):
|
||||
if product == "gecko":
|
||||
|
|
|
@ -2004,7 +2004,8 @@ impl PropertyDeclaration {
|
|||
% if prop.logical:
|
||||
% for physical_property in prop.all_physical_mapped_properties():
|
||||
% 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
|
||||
% endfor
|
||||
% endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче