style: Remove layout.css.image-set.enabled

We shipped this in 88.

Differential Revision: https://phabricator.services.mozilla.com/D120899
This commit is contained in:
Emilio Cobos Álvarez 2023-05-22 10:13:05 +02:00 committed by Oriol Brufau
parent eca66dba72
commit 7d1823563e

View file

@ -81,16 +81,6 @@ fn cross_fade_enabled() -> bool {
false
}
#[cfg(feature = "gecko")]
fn image_set_enabled() -> bool {
static_prefs::pref!("layout.css.image-set.enabled")
}
#[cfg(feature = "servo")]
fn image_set_enabled() -> bool {
false
}
impl SpecifiedValueInfo for Gradient {
const SUPPORTED_TYPES: u8 = CssType::GRADIENT;
@ -132,9 +122,7 @@ impl<Image, Resolution> SpecifiedValueInfo for generic::ImageSet<Image, Resoluti
const SUPPORTED_TYPES: u8 = 0;
fn collect_completion_keywords(f: KeywordsCollectFn) {
if image_set_enabled() {
f(&["image-set"]);
}
f(&["image-set"]);
}
}
@ -203,10 +191,8 @@ impl Image {
return Ok(generic::Image::Url(url));
}
if image_set_enabled() {
if let Ok(is) = input.try_parse(|input| ImageSet::parse(context, input, cors_mode, only_url)) {
return Ok(generic::Image::ImageSet(Box::new(is)));
}
if let Ok(is) = input.try_parse(|input| ImageSet::parse(context, input, cors_mode, only_url)) {
return Ok(generic::Image::ImageSet(Box::new(is)));
}
if only_url {