style: Derive ToComputedValue for keyword types.

This commit is contained in:
Emilio Cobos Álvarez 2017-09-09 13:07:47 +02:00
parent 06c8e0163e
commit c87b485fa6
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -95,7 +95,7 @@ macro_rules! define_keyword_type {
#[allow(missing_docs)]
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
#[derive(Animate, Clone, ComputeSquaredDistance, Copy, PartialEq)]
#[derive(ToAnimatedZero, ToCss)]
#[derive(ToAnimatedZero, ToComputedValue, ToCss)]
pub struct $name;
impl fmt::Debug for $name {
@ -113,7 +113,6 @@ macro_rules! define_keyword_type {
}
}
impl $crate::values::computed::ComputedValueAsSpecified for $name {}
impl $crate::values::animated::AnimatedValueAsComputed for $name {}
};
}