mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
LibWeb: Propagate errors in Element::scroll_into_view()
This patch will allow us to handle scrolling errors in the WebDriver implementation :)
This commit is contained in:
parent
9a66a9ac4a
commit
6a72a4df96
4 changed files with 19 additions and 13 deletions
|
@ -1475,7 +1475,7 @@ void Document::set_focused_element(Element* element)
|
|||
|
||||
// Scroll the viewport if necessary to make the newly focused element visible.
|
||||
if (m_focused_element)
|
||||
m_focused_element->scroll_into_view();
|
||||
(void)m_focused_element->scroll_into_view();
|
||||
}
|
||||
|
||||
void Document::set_active_element(Element* element)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue