mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Convert transition-timing-function longhand into vector_longhand
This commit is contained in:
parent
77368ac48c
commit
8e21d65303
4 changed files with 72 additions and 133 deletions
|
@ -539,8 +539,7 @@ mod shorthand_serialization {
|
|||
use style::properties::longhands::transition_delay::SpecifiedValue as DelayContainer;
|
||||
use style::properties::longhands::transition_duration::SpecifiedValue as DurationContainer;
|
||||
use style::properties::longhands::transition_property::SpecifiedValue as PropertyContainer;
|
||||
use style::properties::longhands::transition_timing_function::SpecifiedValue as TimingContainer;
|
||||
use style::properties::longhands::transition_timing_function::TransitionTimingFunction;
|
||||
use style::properties::longhands::transition_timing_function;
|
||||
use style::values::specified::Time as TimeContainer;
|
||||
|
||||
let property_name = DeclaredValue::Value(
|
||||
|
@ -556,8 +555,9 @@ mod shorthand_serialization {
|
|||
);
|
||||
|
||||
let timing_function = DeclaredValue::Value(
|
||||
TimingContainer(vec![
|
||||
TransitionTimingFunction::CubicBezier(Point2D::new(0f32, 5f32), Point2D::new(5f32, 10f32))
|
||||
transition_timing_function::SpecifiedValue(vec![
|
||||
transition_timing_function::single_value::SpecifiedValue::CubicBezier(
|
||||
Point2D::new(0f32, 5f32), Point2D::new(5f32, 10f32))
|
||||
])
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue