Further changes required by Servo

This commit is contained in:
Oriol Brufau 2023-11-22 21:42:48 +01:00 committed by Martin Robinson
parent 42d9ec1106
commit 5842cfc127

View file

@ -297,13 +297,10 @@ impl Filter {
Err(())
}
},
Filter::Url(ref url) => {
if cfg!(feature = "gecko") {
Ok(ComputedFilter::Url(ComputedUrl(url.clone())))
} else {
Err(())
}
},
#[cfg(feature = "gecko")]
Filter::Url(ref url) => Ok(ComputedFilter::Url(ComputedUrl(url.clone()))),
#[cfg(feature = "servo")]
Filter::Url(_) => Err(()),
}
}
}