mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Make transform property animatable.
This just changes animatable to True, drops 'if product == "servo" block , fixes indentations and moves 'use' declarations at the top of the file. MozReview-Commit-ID: A96oxYXmknV
This commit is contained in:
parent
10b6c1bb4f
commit
22ff72dfc0
2 changed files with 860 additions and 864 deletions
|
@ -19,6 +19,9 @@ use properties::longhands::text_shadow::computed_value::T as TextShadowList;
|
|||
use properties::longhands::text_shadow::computed_value::TextShadow;
|
||||
use properties::longhands::box_shadow::computed_value::T as BoxShadowList;
|
||||
use properties::longhands::box_shadow::single_value::computed_value::T as BoxShadow;
|
||||
use properties::longhands::transform::computed_value::ComputedMatrix;
|
||||
use properties::longhands::transform::computed_value::ComputedOperation as TransformOperation;
|
||||
use properties::longhands::transform::computed_value::T as TransformList;
|
||||
use properties::longhands::vertical_align::computed_value::T as VerticalAlign;
|
||||
use properties::longhands::visibility::computed_value::T as Visibility;
|
||||
use properties::longhands::z_index::computed_value::T as ZIndex;
|
||||
|
@ -27,12 +30,14 @@ use std::cmp;
|
|||
use std::fmt;
|
||||
use style_traits::ToCss;
|
||||
use super::ComputedValues;
|
||||
use values::CSSFloat;
|
||||
use values::Either;
|
||||
use values::computed::{Angle, LengthOrPercentageOrAuto, LengthOrPercentageOrNone};
|
||||
use values::computed::{BorderRadiusSize, LengthOrNone};
|
||||
use values::computed::{CalcLengthOrPercentage, Context, LengthOrPercentage};
|
||||
use values::computed::position::{HorizontalPosition, Position, VerticalPosition};
|
||||
use values::computed::ToComputedValue;
|
||||
use values::specified::Angle as SpecifiedAngle;
|
||||
|
||||
|
||||
|
||||
|
@ -852,13 +857,6 @@ impl Interpolate for LengthOrNone {
|
|||
}
|
||||
}
|
||||
|
||||
% if product == "servo":
|
||||
use properties::longhands::transform::computed_value::ComputedMatrix;
|
||||
use properties::longhands::transform::computed_value::ComputedOperation as TransformOperation;
|
||||
use properties::longhands::transform::computed_value::T as TransformList;
|
||||
use values::CSSFloat;
|
||||
use values::specified::Angle as SpecifiedAngle;
|
||||
|
||||
/// Check if it's possible to do a direct numerical interpolation
|
||||
/// between these two transform lists.
|
||||
/// http://dev.w3.org/csswg/css-transforms/#transform-transform-animation
|
||||
|
@ -1777,6 +1775,4 @@ impl Interpolate for LengthOrNone {
|
|||
Ok(result)
|
||||
}
|
||||
}
|
||||
% endif
|
||||
|
||||
|
||||
|
|
|
@ -1051,7 +1051,7 @@ ${helpers.single_keyword("animation-fill-mode",
|
|||
|
||||
|
||||
<%helpers:longhand name="transform" products="gecko servo" extra_prefixes="webkit"
|
||||
animatable="${product == 'servo'}"
|
||||
animatable="True"
|
||||
spec="https://drafts.csswg.org/css-transforms/#propdef-transform">
|
||||
use app_units::Au;
|
||||
use style_traits::ToCss;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue