Further changes required by Servo

This commit is contained in:
Oriol Brufau 2023-10-29 18:10:00 +01:00 committed by Martin Robinson
parent efdf518acc
commit 8a5ba3fe16
2 changed files with 4 additions and 2 deletions

View file

@ -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):
<%

View file

@ -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;