diff options
author | Andreas Kling <kling@serenityos.org> | 2022-02-06 19:27:44 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-06 22:13:13 +0100 |
commit | 2666cb7b01543d07c745038db1c5a510f65b383f (patch) | |
tree | d147dca4e58bb65aaa7251db2b6596a70dcb9e0a /Userland/Libraries/LibWeb | |
parent | 939131176003b2c221cdf9546f0513b9c671e590 (diff) | |
download | serenity-2666cb7b01543d07c745038db1c5a510f65b383f.zip |
LibWeb: Move is_focusable() virtual from Element to EventTarget
Diffstat (limited to 'Userland/Libraries/LibWeb')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Element.h | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/EventTarget.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Element.h b/Userland/Libraries/LibWeb/DOM/Element.h index 439fe6e19e..28d93c2744 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.h +++ b/Userland/Libraries/LibWeb/DOM/Element.h @@ -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&); diff --git a/Userland/Libraries/LibWeb/DOM/EventTarget.h b/Userland/Libraries/LibWeb/DOM/EventTarget.h index 1125024587..d3a118c9aa 100644 --- a/Userland/Libraries/LibWeb/DOM/EventTarget.h +++ b/Userland/Libraries/LibWeb/DOM/EventTarget.h @@ -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>); |