From 8a5ba3fe161c1ec4eeadf0d209e8e8eab90c42cd Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Sun, 29 Oct 2023 18:10:00 +0100 Subject: [PATCH] Further changes required by Servo --- components/style/properties/helpers.mako.rs | 2 +- components/style/properties/shorthands/font.mako.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/style/properties/helpers.mako.rs b/components/style/properties/helpers.mako.rs index 434cf1f11e6..76c96789a40 100644 --- a/components/style/properties/helpers.mako.rs +++ b/components/style/properties/helpers.mako.rs @@ -624,7 +624,7 @@ pub use self::computed_value::T as SpecifiedValue; pub mod computed_value { #[cfg_attr(feature = "servo", derive(Deserialize, Serialize))] - #[derive(Clone, Copy, Debug, Eq, FromPrimitive, MallocSizeOf, Parse, PartialEq, SpecifiedValueInfo, ToComputedValue, ToCss, ToResolvedValue, ToShmem)] + #[derive(Clone, Copy, Debug, Eq, FromPrimitive, Hash, MallocSizeOf, Parse, PartialEq, SpecifiedValueInfo, ToComputedValue, ToCss, ToResolvedValue, ToShmem)] pub enum T { % for variant in keyword.values_for(engine): <% diff --git a/components/style/properties/shorthands/font.mako.rs b/components/style/properties/shorthands/font.mako.rs index 735a2857b5b..e55cdbe2fb8 100644 --- a/components/style/properties/shorthands/font.mako.rs +++ b/components/style/properties/shorthands/font.mako.rs @@ -35,7 +35,9 @@ > use crate::computed_values::font_variant_caps::T::SmallCaps; use crate::parser::Parse; - use crate::properties::longhands::{font_family, font_style, font_size, font_weight, font_stretch}; + use crate::properties::longhands::{font_family, font_style, font_weight, font_stretch}; + #[cfg(feature = "gecko")] + use crate::properties::longhands::font_size; use crate::properties::longhands::font_variant_caps; use crate::values::specified::text::LineHeight; use crate::values::specified::FontSize;