From 829ba4afb9d318e7b4bc9701cbe7c2df47e57df4 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 6 Oct 2022 17:28:00 +0200 Subject: [PATCH] LibWeb: Remove unnecessary verify_cast in greatest_child_width() --- Userland/Libraries/LibWeb/Layout/FormattingContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp index 11ce15d274..6d7c3c5f3b 100644 --- a/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp @@ -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(box)).line_boxes) { + for (auto& line_box : m_state.get(box).line_boxes) { max_width = max(max_width, line_box.width()); } } else {