From f11e232a538d6afca54a5d1a55fd327cd4f57d66 Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Tue, 31 Oct 2023 22:02:31 +0100 Subject: [PATCH] Further changes required by Servo --- components/style/style_adjuster.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/style/style_adjuster.rs b/components/style/style_adjuster.rs index ddfbeb60cee..9c5977dea1c 100644 --- a/components/style/style_adjuster.rs +++ b/components/style/style_adjuster.rs @@ -7,8 +7,11 @@ use crate::computed_value_flags::ComputedValueFlags; use crate::dom::TElement; +#[cfg(feature = "gecko")] use crate::properties::longhands::contain::computed_value::T as Contain; +#[cfg(feature = "gecko")] use crate::properties::longhands::container_type::computed_value::T as ContainerType; +#[cfg(feature = "gecko")] use crate::properties::longhands::content_visibility::computed_value::T as ContentVisibility; use crate::properties::longhands::display::computed_value::T as Display; use crate::properties::longhands::float::computed_value::T as Float; @@ -466,6 +469,7 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> { } } + #[cfg(feature = "gecko")] fn adjust_for_contain(&mut self) { let box_style = self.style.get_box(); debug_assert_eq!(box_style.clone_contain(), box_style.clone_effective_containment()); @@ -941,9 +945,9 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> { self.adjust_for_webkit_line_clamp(); self.adjust_for_position(); self.adjust_for_overflow(); - self.adjust_for_contain(); #[cfg(feature = "gecko")] { + self.adjust_for_contain(); self.adjust_for_table_text_align(); self.adjust_for_justify_items(); }