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:
parent
90719d34af
commit
829ba4afb9
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue