mirror of
https://github.com/servo/servo.git
synced 2025-09-04 03:58:23 +01:00
style: Add a generic way to deal with lists of values, ditch all uses of as_servo in style/animations.rs
This commit is contained in:
parent
07da4e4ea2
commit
ba53c4ea8d
6 changed files with 120 additions and 53 deletions
|
@ -447,6 +447,12 @@ impl ${style_struct.trait_name} for ${style_struct.gecko_struct_name} {
|
|||
unimplemented!()
|
||||
}
|
||||
% endif
|
||||
% if longhand.need_index:
|
||||
fn ${longhand.ident}_count(&self) -> usize { 0 }
|
||||
fn ${longhand.ident}_at(&self, _index: usize) -> longhands::${longhand.ident}::computed_value::SingleComputedValue {
|
||||
unimplemented!()
|
||||
}
|
||||
% endif
|
||||
% endfor
|
||||
<% additionals = [x for x in style_struct.additional_methods
|
||||
if skip_additionals != "*" and not x.name in skip_additionals.split()] %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue