1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:47:37 +00:00

LibWeb: Move is_focusable() virtual from Element to EventTarget

This commit is contained in:
Andreas Kling 2022-02-06 19:27:44 +01:00
parent 9391311760
commit 2666cb7b01
2 changed files with 2 additions and 2 deletions

View file

@ -103,8 +103,6 @@ public:
ExceptionOr<void> set_inner_html(String const&);
bool is_focused() const;
virtual bool is_focusable() const { return false; }
bool is_active() const;
NonnullRefPtr<HTMLCollection> get_elements_by_class_name(FlyString const&);

View file

@ -26,6 +26,8 @@ public:
void ref() { ref_event_target(); }
void unref() { unref_event_target(); }
virtual bool is_focusable() const { return false; }
void add_event_listener(const FlyString& event_name, RefPtr<EventListener>);
void remove_event_listener(const FlyString& event_name, RefPtr<EventListener>);