mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Derive ToComputedValue for TransitionProperty.
This commit is contained in:
parent
84f3073402
commit
b94dd4885d
1 changed files with 2 additions and 5 deletions
|
@ -46,7 +46,7 @@ use values::animated::effects::Filter as AnimatedFilter;
|
||||||
use values::animated::effects::FilterList as AnimatedFilterList;
|
use values::animated::effects::FilterList as AnimatedFilterList;
|
||||||
use values::animated::effects::TextShadowList as AnimatedTextShadowList;
|
use values::animated::effects::TextShadowList as AnimatedTextShadowList;
|
||||||
use values::computed::{Angle, BorderCornerRadius, CalcLengthOrPercentage};
|
use values::computed::{Angle, BorderCornerRadius, CalcLengthOrPercentage};
|
||||||
use values::computed::{ClipRect, Context, ComputedUrl, ComputedValueAsSpecified};
|
use values::computed::{ClipRect, Context, ComputedUrl};
|
||||||
use values::computed::{LengthOrPercentage, LengthOrPercentageOrAuto};
|
use values::computed::{LengthOrPercentage, LengthOrPercentageOrAuto};
|
||||||
use values::computed::{LengthOrPercentageOrNone, MaxLength, NonNegativeAu};
|
use values::computed::{LengthOrPercentageOrNone, MaxLength, NonNegativeAu};
|
||||||
use values::computed::{NonNegativeNumber, Number, NumberOrPercentage, Percentage};
|
use values::computed::{NonNegativeNumber, Number, NumberOrPercentage, Percentage};
|
||||||
|
@ -203,7 +203,7 @@ pub fn nscsspropertyid_is_animatable(property: nsCSSPropertyID) -> bool {
|
||||||
// NB: This needs to be here because it needs all the longhands generated
|
// NB: This needs to be here because it needs all the longhands generated
|
||||||
// beforehand.
|
// beforehand.
|
||||||
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
|
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
|
||||||
#[derive(Clone, Debug, Eq, Hash, PartialEq, ToCss)]
|
#[derive(Clone, Debug, Eq, Hash, PartialEq, ToCss, ToComputedValue)]
|
||||||
pub enum TransitionProperty {
|
pub enum TransitionProperty {
|
||||||
/// All, any transitionable property changing should generate a transition.
|
/// All, any transitionable property changing should generate a transition.
|
||||||
All,
|
All,
|
||||||
|
@ -218,9 +218,6 @@ pub enum TransitionProperty {
|
||||||
Unsupported(CustomIdent)
|
Unsupported(CustomIdent)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
impl ComputedValueAsSpecified for TransitionProperty {}
|
|
||||||
|
|
||||||
impl TransitionProperty {
|
impl TransitionProperty {
|
||||||
/// Iterates over each longhand property.
|
/// Iterates over each longhand property.
|
||||||
pub fn each<F: FnMut(&TransitionProperty) -> ()>(mut cb: F) {
|
pub fn each<F: FnMut(&TransitionProperty) -> ()>(mut cb: F) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue