mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:07:45 +00:00
LibWeb/HTML: Port Window.getSelection() to IDL
This commit is contained in:
parent
56550b6ec0
commit
606b9ff6f3
5 changed files with 18 additions and 22 deletions
|
@ -88,8 +88,7 @@ public:
|
|||
static WebIDL::ExceptionOr<JS::NonnullGCPtr<Document>> construct_impl(JS::Realm&);
|
||||
virtual ~Document() override;
|
||||
|
||||
// https://w3c.github.io/selection-api/#dom-document-getselection
|
||||
JS::GCPtr<Selection::Selection> get_selection();
|
||||
JS::GCPtr<Selection::Selection> get_selection() const;
|
||||
|
||||
size_t next_layout_node_serial_id(Badge<Layout::Node>) { return m_next_layout_node_serial_id++; }
|
||||
size_t layout_node_count() const { return m_next_layout_node_serial_id; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue