mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
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:
parent
eca66dba72
commit
7d1823563e
1 changed files with 3 additions and 17 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue