Further changes required by Servo

This commit is contained in:
Oriol Brufau 2023-09-27 23:23:48 +02:00 committed by Martin Robinson
parent 0dfd45ba21
commit 6dafc18b67

View file

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