1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:17:44 +00:00

LibWeb: Remove unnecessary verify_cast in greatest_child_width()

This commit is contained in:
Andreas Kling 2022-10-06 17:28:00 +02:00
parent 90719d34af
commit 829ba4afb9

View file

@ -197,7 +197,7 @@ float FormattingContext::greatest_child_width(Box const& box)
{
float max_width = 0;
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());
}
} else {