mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
Use predefined_type for transition-property
This commit is contained in:
parent
2da8eb0342
commit
65356b13f8
4 changed files with 19 additions and 33 deletions
|
@ -39,9 +39,8 @@ use values::CSSFloat;
|
|||
use values::{Auto, Either};
|
||||
use values::computed::{Angle, LengthOrPercentageOrAuto, LengthOrPercentageOrNone};
|
||||
use values::computed::{BorderCornerRadius, ClipRect};
|
||||
use values::computed::{CalcLengthOrPercentage, Context, LengthOrPercentage};
|
||||
use values::computed::{MaxLength, MozLength};
|
||||
use values::computed::ToComputedValue;
|
||||
use values::computed::{CalcLengthOrPercentage, Context, ComputedValueAsSpecified};
|
||||
use values::computed::{LengthOrPercentage, MaxLength, MozLength, ToComputedValue};
|
||||
use values::generics::{SVGPaint, SVGPaintKind};
|
||||
use values::generics::border::BorderCornerRadius as GenericBorderCornerRadius;
|
||||
use values::generics::position as generic_position;
|
||||
|
@ -73,6 +72,10 @@ pub enum TransitionProperty {
|
|||
Unsupported(Atom)
|
||||
}
|
||||
|
||||
no_viewport_percentage!(TransitionProperty);
|
||||
|
||||
impl ComputedValueAsSpecified for TransitionProperty {}
|
||||
|
||||
impl TransitionProperty {
|
||||
/// Iterates over each longhand property.
|
||||
pub fn each<F: FnMut(&TransitionProperty) -> ()>(mut cb: F) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue