1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 19:05:06 +00:00

LibWeb: Don't assert when containing block doesn't know how to place

We can just log that we don't know what to do for now.
This commit is contained in:
Andreas Kling 2020-06-14 22:07:00 +02:00
parent 0072370459
commit 9ad3e6cd8a

View file

@ -148,10 +148,8 @@ void LayoutBlock::layout_contained_boxes(LayoutMode layout_mode)
place_block_level_replaced_element_in_normal_flow(to<LayoutReplaced>(box));
else if (box.is_block())
place_block_level_non_replaced_element_in_normal_flow(to<LayoutBlock>(box));
else {
dbg() << "FIXME: How do I place a " << box.class_name() << "?";
ASSERT_NOT_REACHED();
}
else
dbg() << "FIXME: LayoutBlock::layout_contained_boxes doesn't know how to place a " << box.class_name();
content_height = max(content_height, box.effective_offset().y() + box.height() + box.box_model().margin_box(*this).bottom);
content_width = max(content_width, to<LayoutBox>(box).width());
return IterationDecision::Continue;