mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
style: Replace :-moz-native-anonymous-no-specificity with :where(:-moz-native-anonymous).
Differential Revision: https://phabricator.services.mozilla.com/D88255
This commit is contained in:
parent
f2dfe7f08c
commit
16e0fd3e1f
4 changed files with 1 additions and 16 deletions
|
@ -98,7 +98,6 @@ macro_rules! apply_non_ts_list {
|
||||||
("-moz-last-node", MozLastNode, _, _),
|
("-moz-last-node", MozLastNode, _, _),
|
||||||
("-moz-only-whitespace", MozOnlyWhitespace, _, _),
|
("-moz-only-whitespace", MozOnlyWhitespace, _, _),
|
||||||
("-moz-native-anonymous", MozNativeAnonymous, _, PSEUDO_CLASS_ENABLED_IN_UA_SHEETS),
|
("-moz-native-anonymous", MozNativeAnonymous, _, PSEUDO_CLASS_ENABLED_IN_UA_SHEETS),
|
||||||
("-moz-native-anonymous-no-specificity", MozNativeAnonymousNoSpecificity, _, PSEUDO_CLASS_ENABLED_IN_UA_SHEETS),
|
|
||||||
("-moz-use-shadow-tree-root", MozUseShadowTreeRoot, _, PSEUDO_CLASS_ENABLED_IN_UA_SHEETS),
|
("-moz-use-shadow-tree-root", MozUseShadowTreeRoot, _, PSEUDO_CLASS_ENABLED_IN_UA_SHEETS),
|
||||||
("-moz-is-html", MozIsHTML, _, _),
|
("-moz-is-html", MozIsHTML, _, _),
|
||||||
("-moz-placeholder", MozPlaceholder, _, _),
|
("-moz-placeholder", MozPlaceholder, _, _),
|
||||||
|
|
|
@ -216,7 +216,6 @@ impl NonTSPseudoClass {
|
||||||
NonTSPseudoClass::MozIsHTML |
|
NonTSPseudoClass::MozIsHTML |
|
||||||
// We prevent style sharing for NAC.
|
// We prevent style sharing for NAC.
|
||||||
NonTSPseudoClass::MozNativeAnonymous |
|
NonTSPseudoClass::MozNativeAnonymous |
|
||||||
NonTSPseudoClass::MozNativeAnonymousNoSpecificity |
|
|
||||||
// :-moz-placeholder is parsed but never matches.
|
// :-moz-placeholder is parsed but never matches.
|
||||||
NonTSPseudoClass::MozPlaceholder |
|
NonTSPseudoClass::MozPlaceholder |
|
||||||
// :-moz-locale-dir and :-moz-window-inactive depend only on
|
// :-moz-locale-dir and :-moz-window-inactive depend only on
|
||||||
|
@ -249,11 +248,6 @@ impl ::selectors::parser::NonTSPseudoClass for NonTSPseudoClass {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
|
||||||
fn has_zero_specificity(&self) -> bool {
|
|
||||||
matches!(*self, NonTSPseudoClass::MozNativeAnonymousNoSpecificity)
|
|
||||||
}
|
|
||||||
|
|
||||||
fn visit<V>(&self, visitor: &mut V) -> bool
|
fn visit<V>(&self, visitor: &mut V) -> bool
|
||||||
where
|
where
|
||||||
V: SelectorVisitor<Impl = Self::Impl>,
|
V: SelectorVisitor<Impl = Self::Impl>,
|
||||||
|
|
|
@ -2109,10 +2109,7 @@ impl<'le> ::selectors::Element for GeckoElement<'le> {
|
||||||
}
|
}
|
||||||
true
|
true
|
||||||
},
|
},
|
||||||
NonTSPseudoClass::MozNativeAnonymous |
|
NonTSPseudoClass::MozNativeAnonymous => self.is_in_native_anonymous_subtree(),
|
||||||
NonTSPseudoClass::MozNativeAnonymousNoSpecificity => {
|
|
||||||
self.is_in_native_anonymous_subtree()
|
|
||||||
},
|
|
||||||
NonTSPseudoClass::MozUseShadowTreeRoot => self.is_root_of_use_element_shadow_tree(),
|
NonTSPseudoClass::MozUseShadowTreeRoot => self.is_root_of_use_element_shadow_tree(),
|
||||||
NonTSPseudoClass::MozTableBorderNonzero => unsafe {
|
NonTSPseudoClass::MozTableBorderNonzero => unsafe {
|
||||||
bindings::Gecko_IsTableBorderNonzero(self.0)
|
bindings::Gecko_IsTableBorderNonzero(self.0)
|
||||||
|
|
|
@ -313,11 +313,6 @@ impl ::selectors::parser::NonTSPseudoClass for NonTSPseudoClass {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[inline]
|
|
||||||
fn has_zero_specificity(&self) -> bool {
|
|
||||||
false
|
|
||||||
}
|
|
||||||
|
|
||||||
fn visit<V>(&self, _: &mut V) -> bool
|
fn visit<V>(&self, _: &mut V) -> bool
|
||||||
where
|
where
|
||||||
V: SelectorVisitor<Impl = Self::Impl>,
|
V: SelectorVisitor<Impl = Self::Impl>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue