mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
style: remove is_servo(), as_servo() and as_servo_mut()
This commit adds a need_index prop to the style system, and autogenerates iterators, and a get_xxx_mod(i) function from a get_xxx_prop() and get_xxx_at(index) functions. This allows us to (finally!) take rid of the as_servo() hack. There are a few unimplemented clones, but I'm just too lazy for that right now.
This commit is contained in:
parent
ba53c4ea8d
commit
30963dd74d
7 changed files with 296 additions and 81 deletions
|
@ -405,11 +405,6 @@ pub fn maybe_start_animations<Impl: SelectorImplExt>(context: &SharedStyleContex
|
|||
{
|
||||
let mut had_animations = false;
|
||||
|
||||
// FIXME(emilio): Implement animations for geckolib.
|
||||
if !new_style.is_servo() {
|
||||
return false;
|
||||
}
|
||||
|
||||
let box_style = new_style.get_box();
|
||||
for (i, name) in box_style.animation_name_iter().enumerate() {
|
||||
debug!("maybe_start_animations: name={}", name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue