diff --git a/components/style/style_adjuster.rs b/components/style/style_adjuster.rs index 09bdb2a6522..7036cb92682 100644 --- a/components/style/style_adjuster.rs +++ b/components/style/style_adjuster.rs @@ -156,6 +156,7 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> { /// This makes the element not be a flex container, with all that it /// implies, but it should be safe. It matches blink, see /// https://bugzilla.mozilla.org/show_bug.cgi?id=1786147#c10 + #[cfg(feature = "gecko")] fn adjust_for_webkit_line_clamp(&mut self) { use crate::properties::longhands::_moz_box_orient::computed_value::T as BoxOrient; use crate::values::specified::box_::{DisplayOutside, DisplayInside}; @@ -885,6 +886,7 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> { } self.adjust_for_top_layer(); self.blockify_if_necessary(layout_parent_style, element); + #[cfg(feature = "gecko")] self.adjust_for_webkit_line_clamp(); self.adjust_for_position(); self.adjust_for_overflow();