mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
layout: Remove reflow damage after reflowing replaced blocks.
This commit is contained in:
parent
65e3db1c0d
commit
132810e739
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue