mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Remove get_animation_rule_by_cascade.
It's pretty useless.
This commit is contained in:
parent
8d34aacb3b
commit
c5bfc81b74
3 changed files with 15 additions and 36 deletions
|
@ -1084,17 +1084,6 @@ impl<'le> TElement for GeckoElement<'le> {
|
|||
}
|
||||
}
|
||||
|
||||
fn get_animation_rule_by_cascade(
|
||||
&self,
|
||||
cascade_level: ServoCascadeLevel,
|
||||
) -> Option<Arc<Locked<PropertyDeclarationBlock>>> {
|
||||
match cascade_level {
|
||||
ServoCascadeLevel::Animations => self.get_animation_rule(),
|
||||
ServoCascadeLevel::Transitions => self.get_transition_rule(),
|
||||
_ => panic!("Unsupported cascade level for getting the animation rule")
|
||||
}
|
||||
}
|
||||
|
||||
fn get_animation_rule(
|
||||
&self,
|
||||
) -> Option<Arc<Locked<PropertyDeclarationBlock>>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue