mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Handle None_ => None enum changes
This commit is contained in:
parent
957893bdc2
commit
3fe13a29f4
4 changed files with 17 additions and 20 deletions
|
@ -46,12 +46,9 @@ class Keyword(object):
|
|||
|
||||
def gecko_constant(self, value):
|
||||
if self.gecko_enum_prefix:
|
||||
if value == "none":
|
||||
return self.gecko_enum_prefix + "::None_"
|
||||
else:
|
||||
parts = value.replace("-moz-", "").split("-")
|
||||
parts = [p.title() for p in parts]
|
||||
return self.gecko_enum_prefix + "::" + "".join(parts)
|
||||
parts = value.replace("-moz-", "").split("-")
|
||||
parts = [p.title() for p in parts]
|
||||
return self.gecko_enum_prefix + "::" + "".join(parts)
|
||||
else:
|
||||
return self.gecko_constant_prefix + "_" + value.replace("-moz-", "").replace("-", "_").upper()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue