Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Loirooriol committed Apr 21, 2024
1 parent b84deed commit 6c3d901
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions style/properties/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,10 @@ impl PropertyId {
pub fn is_animatable(&self) -> bool {
match self {
Self::NonCustom(id) => id.is_animatable(),
Self::Custom(..) => true,
#[cfg(feature = "gecko")]
Self::Custom(_) => true,
#[cfg(feature = "servo")]
Self::Custom(_) => false,
}
}

Expand Down Expand Up @@ -1025,7 +1028,10 @@ impl<'a> PropertyDeclarationId<'a> {
pub fn is_animatable(&self) -> bool {
match self {
Self::Longhand(id) => id.is_animatable(),
Self::Custom(_) => true,
#[cfg(feature = "gecko")]
PropertyDeclarationId::Custom(_) => true,
#[cfg(feature = "servo")]
PropertyDeclarationId::Custom(_) => false,
}
}

Expand All @@ -1035,7 +1041,10 @@ impl<'a> PropertyDeclarationId<'a> {
match self {
Self::Longhand(longhand) => longhand.is_discrete_animatable(),
// TODO(bug 1885995): Refine this.
#[cfg(feature = "gecko")]
Self::Custom(_) => true,
#[cfg(feature = "servo")]
Self::Custom(_) => false,
}
}

Expand Down

0 comments on commit 6c3d901

Please sign in to comment.