mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Add Servo_GetStyleFoo functions to get style structs from GeckoComputedValues.
While we're here we also: * remove any code conditional on style_struct.gecko_ffi_name, since all style structs now do have a corresponding Geckos struct * add new UIReset and XUL style structs, so that all Gecko structs are now present (apart from Variables, which is special)
This commit is contained in:
parent
aa078a0780
commit
88f51af3f8
27 changed files with 71 additions and 37 deletions
|
@ -98,7 +98,7 @@ class Method(object):
|
|||
|
||||
|
||||
class StyleStruct(object):
|
||||
def __init__(self, name, inherited, gecko_ffi_name=None, additional_methods=None):
|
||||
def __init__(self, name, inherited, gecko_name=None, additional_methods=None):
|
||||
self.servo_struct_name = "Servo" + name
|
||||
self.gecko_struct_name = "Gecko" + name
|
||||
self.trait_name = name
|
||||
|
@ -106,7 +106,8 @@ class StyleStruct(object):
|
|||
self.ident = to_rust_ident(self.trait_name_lower)
|
||||
self.longhands = []
|
||||
self.inherited = inherited
|
||||
self.gecko_ffi_name = gecko_ffi_name
|
||||
self.gecko_name = gecko_name or name
|
||||
self.gecko_ffi_name = "nsStyle" + self.gecko_name
|
||||
self.additional_methods = additional_methods or []
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue