diff --git a/components/style/properties/helpers/animated_properties.mako.rs b/components/style/properties/helpers/animated_properties.mako.rs index a5f1abd935e..f47a0cc949d 100644 --- a/components/style/properties/helpers/animated_properties.mako.rs +++ b/components/style/properties/helpers/animated_properties.mako.rs @@ -363,6 +363,7 @@ pub enum AnimationValue { impl AnimationValue { /// Returns the longhand id this animated value corresponds to. + #[inline] pub fn id(&self) -> LonghandId { let id = unsafe { *(self as *const _ as *const LonghandId) }; debug_assert_eq!(id, match *self { diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index 254bfc254c1..fb3281348a5 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -1739,6 +1739,7 @@ impl fmt::Debug for PropertyDeclaration { impl PropertyDeclaration { /// Given a property declaration, return the property declaration id. + #[inline] pub fn id(&self) -> PropertyDeclarationId { match *self { PropertyDeclaration::Custom(ref declaration) => {