Kill ComputedValueAsSpecified 🔫

This commit is contained in:
Anthony Ramine 2017-09-11 16:49:16 +02:00
parent 891789109b
commit 4e64ccde60
2 changed files with 1 additions and 25 deletions

View file

@ -34,11 +34,7 @@ pub enum Image<Gradient, MozImageRect, ImageUrl> {
PaintWorklet(PaintWorklet),
}
// Can't just use derive(ToComputedValue) on Image, because when trying to do
// "impl<T> ToComputedValue for Box<T>" the Rust compiler complains that
// "impl<T> ToComputedValue for T where T: ComputedValueAsSpecified + Clone"
// aleady implements ToComputedValue for std::boxed::Box<_> and hence we have
// conflicting implementations.
// FIXME(nox): Implement TCV for Box<T> and derive this.
impl<Gradient: ToComputedValue,
MozImageRect: ToComputedValue,
ImageUrl: ToComputedValue> ToComputedValue for Image<Gradient, MozImageRect, ImageUrl> {