diff --git a/components/style/properties/helpers.mako.rs b/components/style/properties/helpers.mako.rs index 4d3895440d5..7a25b2569ea 100644 --- a/components/style/properties/helpers.mako.rs +++ b/components/style/properties/helpers.mako.rs @@ -563,6 +563,7 @@ Copy, Debug, Eq, + FromPrimitive, Hash, MallocSizeOf, Parse, @@ -762,7 +763,7 @@ % endif pub mod computed_value { #[cfg_attr(feature = "servo", derive(Deserialize, Serialize))] - #[derive(Clone, Copy, Debug, Eq, MallocSizeOf, PartialEq, ToCss, ToResolvedValue)] + #[derive(Clone, Copy, Debug, Eq, FromPrimitive, MallocSizeOf, PartialEq, ToCss, ToResolvedValue)] % if not extra_specified: #[derive(Parse, SpecifiedValueInfo, ToComputedValue, ToShmem)] % endif diff --git a/components/style/properties/longhands/inherited_box.mako.rs b/components/style/properties/longhands/inherited_box.mako.rs index 78c2e6023ee..e7715431b5e 100644 --- a/components/style/properties/longhands/inherited_box.mako.rs +++ b/components/style/properties/longhands/inherited_box.mako.rs @@ -43,7 +43,7 @@ ${helpers.single_keyword( servo_2020_pref="layout.2020.unimplemented", animation_value_type="none", spec="https://drafts.csswg.org/css-writing-modes/#propdef-direction", - needs_conversion=True, + gecko_enum_prefix="StyleDirection", servo_restyle_damage="rebuild_and_reflow", )}