mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Ruby style adjustments shouldn't reset mOriginalDisplay.
This matches what Gecko does: https://searchfox.org/mozilla-central/rev/7476b71e0010ab3277b77cc0ae4d998c4b1d2b64/layout/style/GeckoStyleContext.cpp#992 And it's conceptually more right, since we ideally shouldn't mutate mOriginalDisplay from StyleAdjuster.
This commit is contained in:
parent
6ca651c0c8
commit
72e62fe308
1 changed files with 1 additions and 1 deletions
|
@ -470,7 +470,7 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> {
|
|||
if !flags.contains(CascadeFlags::SKIP_ROOT_AND_ITEM_BASED_DISPLAY_FIXUP) {
|
||||
let inline_display = self_display.inlinify();
|
||||
if self_display != inline_display {
|
||||
self.style.mutate_box().set_display(inline_display);
|
||||
self.style.mutate_box().set_adjusted_display(inline_display, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue