mirror of
https://github.com/servo/servo.git
synced 2025-08-15 02:15:33 +01:00
Kill delegate_animate from vector_longhand
The impl is now always generated if animation_value_type is ComputedValue.
This commit is contained in:
parent
6c7c00f4c8
commit
4a2ede9b3a
6 changed files with 24 additions and 36 deletions
|
@ -16,7 +16,6 @@ use euclid::{Point2D, Size2D};
|
|||
#[cfg(feature = "gecko")] use gecko_string_cache::Atom;
|
||||
use properties::{CSSWideKeyword, PropertyDeclaration};
|
||||
use properties::longhands;
|
||||
use properties::longhands::background_size::computed_value::T as BackgroundSizeList;
|
||||
use properties::longhands::font_weight::computed_value::T as FontWeight;
|
||||
use properties::longhands::font_stretch::computed_value::T as FontStretch;
|
||||
use properties::longhands::transform::computed_value::ComputedMatrix;
|
||||
|
@ -1083,23 +1082,6 @@ impl Animatable for VerticalAlign {
|
|||
}
|
||||
}
|
||||
|
||||
impl Animatable for BackgroundSizeList {
|
||||
#[inline]
|
||||
fn add_weighted(&self, other: &Self, self_portion: f64, other_portion: f64) -> Result<Self, ()> {
|
||||
self.0.add_weighted(&other.0, self_portion, other_portion).map(BackgroundSizeList)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn compute_distance(&self, other: &Self) -> Result<f64, ()> {
|
||||
self.0.compute_distance(&other.0)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn compute_squared_distance(&self, other: &Self) -> Result<f64, ()> {
|
||||
self.0.compute_squared_distance(&other.0)
|
||||
}
|
||||
}
|
||||
|
||||
/// https://drafts.csswg.org/css-transitions/#animtype-lpcalc
|
||||
impl Animatable for CalcLengthOrPercentage {
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue