1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 03:08:13 +00:00

LibWeb: Implement Selection.collapse_to_start

This commit is contained in:
Rafał Babiarz 2022-12-09 22:08:16 +01:00 committed by Andreas Kling
parent 6d46ebfe8a
commit bb5da1b4e2
2 changed files with 17 additions and 3 deletions

View file

@ -39,7 +39,7 @@ public:
void empty();
WebIDL::ExceptionOr<void> collapse(JS::GCPtr<DOM::Node>, unsigned offset);
WebIDL::ExceptionOr<void> set_position(JS::GCPtr<DOM::Node>, unsigned offset);
void collapse_to_start();
WebIDL::ExceptionOr<void> collapse_to_start();
void collapse_to_end();
WebIDL::ExceptionOr<void> extend(JS::NonnullGCPtr<DOM::Node>, unsigned 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);