diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index fd2bc2cb373..e4f0ecc848e 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -474,9 +474,10 @@ impl NonCustomPropertyId { self.0 } + /// Convert a `NonCustomPropertyId` into a `nsCSSPropertyID`. #[cfg(feature = "gecko")] #[inline] - fn to_nscsspropertyid(self) -> nsCSSPropertyID { + pub fn to_nscsspropertyid(self) -> nsCSSPropertyID { // unsafe: guaranteed by static_assert_nscsspropertyid above. unsafe { std::mem::transmute(self.0 as i32) } }