mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Remove unused StyleRelations.
MozReview-Commit-ID: ed0NiuY9Ek
This commit is contained in:
parent
bdb84c7539
commit
60f846b2ca
3 changed files with 14 additions and 54 deletions
|
@ -1129,7 +1129,6 @@ impl<'le> ::selectors::Element for GeckoElement<'le> {
|
|||
}
|
||||
elem = prev;
|
||||
}
|
||||
relations.insert(AFFECTED_BY_CHILD_INDEX);
|
||||
true
|
||||
}
|
||||
NonTSPseudoClass::MozLastNode => {
|
||||
|
@ -1141,7 +1140,6 @@ impl<'le> ::selectors::Element for GeckoElement<'le> {
|
|||
}
|
||||
elem = next;
|
||||
}
|
||||
relations.insert(AFFECTED_BY_CHILD_INDEX);
|
||||
true
|
||||
}
|
||||
NonTSPseudoClass::MozOnlyWhitespace => {
|
||||
|
@ -1149,7 +1147,6 @@ impl<'le> ::selectors::Element for GeckoElement<'le> {
|
|||
if self.as_node().dom_children().any(|c| c.contains_non_whitespace_content()) {
|
||||
return false
|
||||
}
|
||||
relations.insert(AFFECTED_BY_EMPTY);
|
||||
true
|
||||
}
|
||||
NonTSPseudoClass::MozTableBorderNonzero |
|
||||
|
|
|
@ -24,7 +24,6 @@ use rule_tree::{CascadeLevel, RuleTree, StrongRuleNode, StyleSource};
|
|||
use selector_parser::{SelectorImpl, PseudoElement, Snapshot};
|
||||
use selectors::Element;
|
||||
use selectors::bloom::BloomFilter;
|
||||
use selectors::matching::{AFFECTED_BY_ANIMATIONS, AFFECTED_BY_TRANSITIONS};
|
||||
use selectors::matching::{AFFECTED_BY_STYLE_ATTRIBUTE, AFFECTED_BY_PRESENTATIONAL_HINTS};
|
||||
use selectors::matching::{ElementSelectorFlags, StyleRelations, matches_selector};
|
||||
use selectors::parser::{Component, Selector, SelectorInner, LocalName as LocalNameSelector};
|
||||
|
@ -716,7 +715,6 @@ impl Stylist {
|
|||
// The animations sheet (CSS animations, script-generated animations,
|
||||
// and CSS transitions that are no longer tied to CSS markup)
|
||||
if let Some(anim) = animation_rules.0 {
|
||||
relations |= AFFECTED_BY_ANIMATIONS;
|
||||
Push::push(
|
||||
applicable_declarations,
|
||||
ApplicableDeclarationBlock::from_declarations(anim.clone(),
|
||||
|
@ -773,7 +771,6 @@ impl Stylist {
|
|||
// Step 10: Transitions.
|
||||
// The transitions sheet (CSS transitions that are tied to CSS markup)
|
||||
if let Some(anim) = animation_rules.1 {
|
||||
relations |= AFFECTED_BY_TRANSITIONS;
|
||||
Push::push(
|
||||
applicable_declarations,
|
||||
ApplicableDeclarationBlock::from_declarations(anim.clone(), CascadeLevel::Transitions));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue