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:
parent
8da14bf880
commit
fc9abee84b
3 changed files with 29 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue