From 70edd2318cb623902ce44610e93dfe986d89e086 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Mon, 11 Jan 2021 01:55:50 +0000 Subject: [PATCH] style: Remove layout.css.file-selector-button.enabled pref. On by default since bug 1662478 (Firefox 82) Depends on D101289 Differential Revision: https://phabricator.services.mozilla.com/D101290 --- components/style/gecko/pseudo_element.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/components/style/gecko/pseudo_element.rs b/components/style/gecko/pseudo_element.rs index 55d202c9236..5a9b955b1c8 100644 --- a/components/style/gecko/pseudo_element.rs +++ b/components/style/gecko/pseudo_element.rs @@ -160,12 +160,7 @@ impl PseudoElement { /// Whether this pseudo-element is enabled for all content. pub fn enabled_in_content(&self) -> bool { - match *self { - PseudoElement::FileSelectorButton => { - static_prefs::pref!("layout.css.file-selector-button.enabled") - }, - _ => (self.flags() & structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS_AND_CHROME) == 0, - } + self.flags() & structs::CSS_PSEUDO_ELEMENT_ENABLED_IN_UA_SHEETS_AND_CHROME == 0 } /// Whether this pseudo is enabled explicitly in UA sheets.