mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 00:08:55 +00:00
LibWeb: Implement selectionchange event according to spec
This commit is contained in:
parent
aab5a9e944
commit
a58f39c9e2
Notes:
github-actions[bot]
2024-10-09 17:09:45 +00:00
Author: https://github.com/gmta
Commit: a58f39c9e2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1696
Reviewed-by: https://github.com/tcl3
4 changed files with 82 additions and 14 deletions
|
@ -568,6 +568,10 @@ public:
|
|||
bool query_command_supported(String const& command);
|
||||
String query_command_value(String const& command);
|
||||
|
||||
// https://w3c.github.io/selection-api/#dfn-has-scheduled-selectionchange-event
|
||||
bool has_scheduled_selectionchange_event() const { return m_has_scheduled_selectionchange_event; }
|
||||
void set_scheduled_selectionchange_event(bool value) { m_has_scheduled_selectionchange_event = value; }
|
||||
|
||||
bool is_allowed_to_use_feature(PolicyControlledFeature) const;
|
||||
|
||||
void did_stop_being_active_document_in_navigable();
|
||||
|
@ -1000,6 +1004,9 @@ private:
|
|||
// https://dom.spec.whatwg.org/#document-allow-declarative-shadow-roots
|
||||
bool m_allow_declarative_shadow_roots { false };
|
||||
|
||||
// https://w3c.github.io/selection-api/#dfn-has-scheduled-selectionchange-event
|
||||
bool m_has_scheduled_selectionchange_event { false };
|
||||
|
||||
JS::GCPtr<JS::ConsoleClient> m_console_client;
|
||||
|
||||
JS::GCPtr<DOM::Position> m_cursor_position;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue