mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 01:56:38 +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
Notes:
sideshowbarker
2024-07-17 07:20:49 +09:00
Author: https://github.com/Baitinq
Commit: 6a72a4df96
Pull-request: https://github.com/SerenityOS/serenity/pull/16648
4 changed files with 19 additions and 13 deletions
|
@ -175,7 +175,7 @@ public:
|
|||
WebIDL::ExceptionOr<void> insert_adjacent_text(DeprecatedString const& where, DeprecatedString const& data);
|
||||
|
||||
// https://w3c.github.io/csswg-drafts/cssom-view-1/#dom-element-scrollintoview
|
||||
void scroll_into_view(Optional<Variant<bool, ScrollIntoViewOptions>> = {});
|
||||
ErrorOr<void> scroll_into_view(Optional<Variant<bool, ScrollIntoViewOptions>> = {});
|
||||
|
||||
protected:
|
||||
Element(Document&, DOM::QualifiedName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue