mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Moved the rest of the longhand structs to separate files.
Sorry for the bulk size of this; I know already it's not going to be a fun thing to review. Nevertheless, it should be done so we finalize the split of this huge file into smaller, more maintable parts. The content of stuff being moved to separate files is unchanged. Only some minor formatting changes have been made and similar, but nothing of particular interest. IMHO it should be safe to merge if all the tests are fine.
This commit is contained in:
parent
97a45dc30c
commit
4e8831457a
21 changed files with 4440 additions and 4361 deletions
|
@ -128,13 +128,6 @@ class PropertiesData(object):
|
|||
def active_style_structs(self):
|
||||
return [s for s in self.style_structs if s.additional_methods or s.longhands]
|
||||
|
||||
def switch_to_style_struct(self, name):
|
||||
for style_struct in self.style_structs:
|
||||
if style_struct.trait_name == name:
|
||||
self.current_style_struct = style_struct
|
||||
return
|
||||
raise Exception("Failed to find the struct named " + name)
|
||||
|
||||
def declare_longhand(self, name, products="gecko servo", **kwargs):
|
||||
products = products.split()
|
||||
if self.product not in products:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue