mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +00:00
LibWeb: Add missing return statement in an element scrolling error case
This commit is contained in:
parent
88d0d0d90d
commit
ba86011fab
1 changed files with 1 additions and 1 deletions
|
@ -1193,7 +1193,7 @@ static ErrorOr<void> scroll_an_element_into_view(DOM::Element& element, Bindings
|
|||
(void)inline_;
|
||||
|
||||
if (!element.document().browsing_context())
|
||||
Error::from_string_view("Element has no browsing context."sv);
|
||||
return Error::from_string_view("Element has no browsing context."sv);
|
||||
|
||||
auto* page = element.document().browsing_context()->page();
|
||||
if (!page)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue