mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:57:44 +00:00
LibWeb: Remove an unnecessary (and unsafe) cast from Node to Element
Fixes #22170
This commit is contained in:
parent
0cb0d60ac5
commit
20da5b6153
1 changed files with 1 additions and 1 deletions
|
@ -1528,7 +1528,7 @@ static ErrorOr<void> scroll_an_element_into_view(DOM::Element& target, Bindings:
|
|||
Vector<DOM::Node&> scrollable_nodes;
|
||||
while (ancestor) {
|
||||
if (ancestor->paintable_box() && ancestor->paintable_box()->has_scrollable_overflow())
|
||||
scrollable_nodes.append(*static_cast<DOM::Element*>(ancestor));
|
||||
scrollable_nodes.append(*ancestor);
|
||||
ancestor = ancestor->parent();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue