From 72e62fe30831fdc3ef1a38c2a26c0f846cbe13fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sat, 13 Jan 2018 13:21:58 +0100 Subject: [PATCH] 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. --- components/style/style_adjuster.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/style/style_adjuster.rs b/components/style/style_adjuster.rs index 4da9f0f9227..62b2a42c671 100644 --- a/components/style/style_adjuster.rs +++ b/components/style/style_adjuster.rs @@ -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); } } }