mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Auto merge of #15742 - emilio:stylo-orig-display, r=bzbarsky
stylo: Fix adjustment of the display property to save mOriginalDisplay properly. r? @heycam <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15742) <!-- Reviewable:end -->
This commit is contained in:
commit
cecbc33c01
2 changed files with 20 additions and 2 deletions
|
@ -1949,13 +1949,15 @@ pub fn apply_declarations<'a, F, I>(viewport_size: Size2D<Au>,
|
|||
};
|
||||
if let Some(computed_display) = computed_display {
|
||||
let box_ = style.mutate_box();
|
||||
box_.set_display(computed_display);
|
||||
% if product == "servo":
|
||||
box_.set_display(computed_display);
|
||||
box_.set__servo_display_for_hypothetical_box(if blockify_root || blockify_item {
|
||||
computed_display
|
||||
} else {
|
||||
specified_display
|
||||
});
|
||||
% else:
|
||||
box_.set_adjusted_display(computed_display);
|
||||
% endif
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue