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:
Brian Birtles 2017-04-27 12:36:09 +09:00
parent 2c3c9d673d
commit ba118dfe69
2 changed files with 2 additions and 2 deletions

View file

@ -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();