mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Introduce values::animated::Animate
This replaces the Animatable trait and merges its three former methods into a single one.
This commit is contained in:
parent
0cceeb9d5c
commit
aea0cd7ec7
23 changed files with 876 additions and 937 deletions
|
@ -87,10 +87,13 @@ macro_rules! define_keyword_type {
|
|||
#[derive(Clone, ComputeSquaredDistance, Copy, PartialEq, ToCss)]
|
||||
pub struct $name;
|
||||
|
||||
impl $crate::properties::animated_properties::Animatable for $name {
|
||||
impl $crate::values::animated::Animate for $name {
|
||||
#[inline]
|
||||
fn add_weighted(&self, _other: &Self, _self_progress: f64, _other_progress: f64)
|
||||
-> Result<Self, ()> {
|
||||
fn animate(
|
||||
&self,
|
||||
_other: &Self,
|
||||
_procedure: $crate::values::animated::Procedure,
|
||||
) -> Result<Self, ()> {
|
||||
Ok($name)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue