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

LibWeb: Add Event.initEvent

Used by YouTube after creating an event with Document.createEvent
This commit is contained in:
Luke 2021-04-10 20:11:04 +01:00 committed by Andreas Kling
parent 8da14bf880
commit fc9abee84b
3 changed files with 29 additions and 0 deletions

View file

@ -154,6 +154,8 @@ public:
m_stop_immediate_propagation = true;
}
void init_event(const String&, bool, bool);
protected:
explicit Event(const FlyString& type)
: m_type(type)
@ -161,6 +163,8 @@ protected:
{
}
void initialize(const String&, bool, bool);
private:
FlyString m_type;
RefPtr<EventTarget> m_target;