mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Remove some prefs for pseudo-classes that we have shipped/unshipped successfully
And remove code for :-moz-submit-invalid completely. Differential Revision: https://phabricator.services.mozilla.com/D130737
This commit is contained in:
parent
6d887b96bc
commit
063d736837
4 changed files with 1 additions and 11 deletions
|
@ -139,12 +139,6 @@ impl NonTSPseudoClass {
|
|||
/// Returns whether the pseudo-class is enabled in content sheets.
|
||||
#[inline]
|
||||
fn is_enabled_in_content(&self) -> bool {
|
||||
if let NonTSPseudoClass::Autofill = *self {
|
||||
return static_prefs::pref!("layout.css.autofill.enabled");
|
||||
}
|
||||
if let NonTSPseudoClass::MozSubmitInvalid = *self {
|
||||
return static_prefs::pref!("layout.css.moz-submit-invalid.enabled");
|
||||
}
|
||||
if matches!(*self, Self::MozLWTheme | Self::MozLWThemeBrightText | Self::MozLWThemeDarkText) {
|
||||
return static_prefs::pref!("layout.css.moz-lwtheme.content.enabled");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue