diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp index 2af6cf8414..32d62dcc2a 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.cpp +++ b/Userland/Libraries/LibWeb/DOM/Element.cpp @@ -1528,7 +1528,7 @@ static ErrorOr scroll_an_element_into_view(DOM::Element& target, Bindings: Vector scrollable_nodes; while (ancestor) { if (ancestor->paintable_box() && ancestor->paintable_box()->has_scrollable_overflow()) - scrollable_nodes.append(*static_cast(ancestor)); + scrollable_nodes.append(*ancestor); ancestor = ancestor->parent(); }