mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
Previously, when a formatting context root had rebuild damage from its own (not from ancestors), we weren't reusing it. Now we check if the level of the box (i.e. whether it's inline-level, block-level, a table cell, a table caption, or absolutely positioned) that will be generated by the new style is compatible with the old box. And if so, we reuse it. Testing: Not needed, there should be no behavior change Signed-off-by: Oriol Brufau <obrufau@igalia.com> Co-authored-by: Luke Warlow <lwarlow@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>