Bug 1359603 - Tweak style adjust ordering to better match Gecko. r=heycam
To ease comparison between Gecko's `nsStyleContext::ApplyStyleFixups` and the
Servo equivalent, move them into a similar ordering.
MozReview-Commit-ID: GV89pbzA8IH
--- a/servo/components/style/style_adjuster.rs
+++ b/servo/components/style/style_adjuster.rs
@@ -255,26 +255,23 @@ impl<'a> StyleAdjuster<'a> {
skip_root_and_element_display_fixup: bool) {
#[cfg(feature = "gecko")]
{
self.adjust_for_text_combine_upright(layout_parent_style);
}
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);
}
}