From 132810e739ec90f18a3a619a40a9ce75e1873912 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 20 Sep 2016 16:16:09 -0700 Subject: [PATCH] layout: Remove reflow damage after reflowing replaced blocks. --- components/layout/block.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/layout/block.rs b/components/layout/block.rs index 5777014c578..dc623d9871a 100644 --- a/components/layout/block.rs +++ b/components/layout/block.rs @@ -1843,6 +1843,8 @@ impl Flow for BlockFlow { self.fragment.assign_replaced_block_size_if_necessary(containing_block_block_size); if !self.base.flags.contains(IS_ABSOLUTELY_POSITIONED) { self.base.position.size.block = self.fragment.border_box.size.block; + self.base.restyle_damage.remove(REFLOW_OUT_OF_FLOW | REFLOW); + self.fragment.restyle_damage.remove(REFLOW_OUT_OF_FLOW | REFLOW); } None } else if self.is_root() || self.formatting_context_type() != FormattingContextType::None {