mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +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:
committed by
Andreas Kling
parent
6a85677f70
commit
05b4676917
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user