mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb: Ensure global objects are an event target
All global objects current need to be event targets so that they can have events dispatched to them. This allows for removing of verify_cast for these global objects.
This commit is contained in:
parent
6a85677f70
commit
05b4676917
Notes:
github-actions[bot]
2024-12-02 23:20:48 +00:00
Author: https://github.com/shannonbooth
Commit: 05b4676917
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2702
Reviewed-by: https://github.com/gmta ✅
6 changed files with 11 additions and 12 deletions
|
@ -43,8 +43,8 @@ public:
|
|||
virtual ~WorkerGlobalScope() override;
|
||||
|
||||
// ^WindowOrWorkerGlobalScopeMixin
|
||||
virtual Bindings::PlatformObject& this_impl() override { return *this; }
|
||||
virtual Bindings::PlatformObject const& this_impl() const override { return *this; }
|
||||
virtual DOM::EventTarget& this_impl() override { return *this; }
|
||||
virtual DOM::EventTarget const& this_impl() const override { return *this; }
|
||||
|
||||
using UniversalGlobalScopeMixin::atob;
|
||||
using UniversalGlobalScopeMixin::btoa;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue