mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
Handle enum classes for clonable properties.
This commit is contained in:
parent
7afe037625
commit
1cd76c2917
2 changed files with 6 additions and 7 deletions
|
@ -58,6 +58,9 @@ class Keyword(object):
|
|||
def needs_cast(self):
|
||||
return self.gecko_enum_prefix is None
|
||||
|
||||
def maybe_cast(self, type_str):
|
||||
return "as " + type_str if self.needs_cast() else ""
|
||||
|
||||
|
||||
class Longhand(object):
|
||||
def __init__(self, style_struct, name, animatable=None, derived_from=None, keyword=None,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue