From a5907e03c9b0a1db97486c50d618694c459b304e Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Wed, 26 Apr 2017 11:30:05 -0500 Subject: [PATCH] Tweak style adjust ordering to better match Gecko To ease comparison between Gecko's `nsStyleContext::ApplyStyleFixups` and the Servo equivalent, move them into a similar ordering. MozReview-Commit-ID: GV89pbzA8IH --- components/style/style_adjuster.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/style/style_adjuster.rs b/components/style/style_adjuster.rs index fc00290d6b0..23e33e3a50b 100644 --- a/components/style/style_adjuster.rs +++ b/components/style/style_adjuster.rs @@ -260,21 +260,18 @@ impl<'a> StyleAdjuster<'a> { self.adjust_for_top_layer(); self.blockify_if_necessary(layout_parent_style, skip_root_and_element_display_fixup); - self.adjust_for_writing_mode(layout_parent_style); self.adjust_for_position(); - self.adjust_for_overflow(); #[cfg(feature = "gecko")] { self.adjust_for_contain(); } - #[cfg(feature = "servo")] { self.adjust_for_alignment(layout_parent_style); } - self.adjust_for_border_width(); self.adjust_for_outline(); + self.adjust_for_writing_mode(layout_parent_style); } }