diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index eda93910730..f61ebdef79a 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -2145,16 +2145,16 @@ impl ComputedValues { % endfor ) -> Arc { Arc::new(Self { - inner: ComputedValuesInner::new( + inner: ComputedValuesInner { custom_properties, writing_mode, - flags, rules, visited_style, - % for style_struct in data.active_style_structs(): + flags, + % for style_struct in data.active_style_structs(): ${style_struct.ident}, - % endfor - ) + % endfor + } }) } @@ -2162,32 +2162,6 @@ impl ComputedValues { pub fn initial_values() -> &'static Self { &*INITIAL_SERVO_VALUES } } -#[cfg(feature = "servo")] -impl ComputedValuesInner { - /// Construct a `ComputedValuesInner` instance. - pub fn new( - custom_properties: Option>, - writing_mode: WritingMode, - flags: ComputedValueFlags, - rules: Option, - visited_style: Option>, - % for style_struct in data.active_style_structs(): - ${style_struct.ident}: Arc, - % endfor - ) -> Self { - ComputedValuesInner { - custom_properties: custom_properties, - writing_mode: writing_mode, - rules: rules, - visited_style: visited_style, - flags: flags, - % for style_struct in data.active_style_structs(): - ${style_struct.ident}: ${style_struct.ident}, - % endfor - } - } -} - #[cfg(feature = "servo")] impl ops::Deref for ComputedValues { type Target = ComputedValuesInner;