mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Rename remove_animation_and_transition_rules to just remove_animation_rules
Now this method covers SMIL override rules, CSS animation / script animation rules, and CSS transition rules so we should just use "animation" in the generic sense.
This commit is contained in:
parent
2c3c9d673d
commit
ba118dfe69
2 changed files with 2 additions and 2 deletions
|
@ -255,7 +255,7 @@ impl RuleTree {
|
|||
}
|
||||
|
||||
/// Returns new rule node without rules from declarative animations.
|
||||
pub fn remove_animation_and_transition_rules(&self, path: &StrongRuleNode) -> StrongRuleNode {
|
||||
pub fn remove_animation_rules(&self, path: &StrongRuleNode) -> StrongRuleNode {
|
||||
// Return a clone if there are no animation rules.
|
||||
if !path.has_animation_or_transition_rules() {
|
||||
return path.clone();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue