mirror of
https://github.com/servo/servo
synced 2026-05-09 16:42:16 +02:00
This cleans up the changes done in #40578. In particular, it removes the unnecessary `Contents::ReplacedWithWidget` since we can handle that with `Contents::Replaced`. It also removes `IndependentFormattingContextContents::ReplacedWithWidget` in favor of `IndependentFormattingContextContents::Replaced`, by adding an optional parameter for the widget. That ensures that the behavior of replaced elements won't accidentally diverge dependign on whether they have a widget. For example, #40578 forgot to handle `ReplacedWithWidget` in `tentative_block_content_size()`. Additionally, this removes the hardcoded especial behavior for `<video>` that was added in `ServoThreadSafeLayoutElement::with_pseudo()`. Testing: Adding a reftest Fixes: #40708 Fixes: #40770 --------- Signed-off-by: Oriol Brufau <obrufau@igalia.com>