mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +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
|
@ -1334,7 +1334,7 @@ pub trait MatchMethods : TElement {
|
|||
let relevant_style = pseudo_style.unwrap_or(primary_style);
|
||||
let rule_node = &relevant_style.rules;
|
||||
let without_animation_rules =
|
||||
shared_context.stylist.rule_tree.remove_animation_and_transition_rules(rule_node);
|
||||
shared_context.stylist.rule_tree.remove_animation_rules(rule_node);
|
||||
if without_animation_rules == *rule_node {
|
||||
// Note that unwrapping here is fine, because the style is
|
||||
// only incomplete during the styling process.
|
||||
|
|
|
@ -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