1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:57:35 +00:00

LibWeb: Implement Selection.setBaseAndExtent

This commit is contained in:
Luke Wilde 2022-12-09 19:00:18 +00:00 committed by Linus Groh
parent b47aceb480
commit 919aa45017
2 changed files with 42 additions and 7 deletions

View file

@ -42,7 +42,7 @@ public:
void collapse_to_start();
void collapse_to_end();
WebIDL::ExceptionOr<void> extend(JS::NonnullGCPtr<DOM::Node>, unsigned offset);
void set_base_and_extent(JS::NonnullGCPtr<DOM::Node> anchor_node, unsigned anchor_offset, JS::NonnullGCPtr<DOM::Node> focus_node, unsigned focus_offset);
WebIDL::ExceptionOr<void> set_base_and_extent(JS::NonnullGCPtr<DOM::Node> anchor_node, unsigned anchor_offset, JS::NonnullGCPtr<DOM::Node> focus_node, unsigned focus_offset);
WebIDL::ExceptionOr<void> select_all_children(JS::NonnullGCPtr<DOM::Node>);
WebIDL::ExceptionOr<void>
delete_from_document();