mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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:
parent
676d177f17
commit
a5907e03c9
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue