LibWeb: Remove unnecessary verify_cast in greatest_child_width()

This commit is contained in:
Andreas Kling 2022-10-06 17:28:00 +02:00
commit 829ba4afb9
Notes: sideshowbarker 2024-07-17 06:14:57 +09:00

View file

@ -197,7 +197,7 @@ float FormattingContext::greatest_child_width(Box const& box)
{ {
float max_width = 0; float max_width = 0;
if (box.children_are_inline()) { if (box.children_are_inline()) {
for (auto& line_box : m_state.get(verify_cast<BlockContainer>(box)).line_boxes) { for (auto& line_box : m_state.get(box).line_boxes) {
max_width = max(max_width, line_box.width()); max_width = max(max_width, line_box.width());
} }
} else { } else {