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
This commit is contained in:
J. Ryan Stinnett 2017-04-26 11:30:05 -05:00
parent 676d177f17
commit a5907e03c9

View file

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