aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2023-10-31 22:02:31 +0100
committerMartin Robinson <mrobinson@igalia.com>2023-11-04 08:17:09 +0100
commitf11e232a538d6afca54a5d1a55fd327cd4f57d66 (patch)
treeecb0868123d36aaf0509fd7062a7b80d67651384
parent7ec4c53266c53221e89644bf1d6ebef972701177 (diff)
downloadservo-f11e232a538d6afca54a5d1a55fd327cd4f57d66.tar.gz
servo-f11e232a538d6afca54a5d1a55fd327cd4f57d66.zip
Further changes required by Servo
-rw-r--r--components/style/style_adjuster.rs6
1 files changed, 5 insertions, 1 deletions
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();
}