mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:27:35 +00:00
LibWeb: Use FlyString for DOM event names
This commit is contained in:
parent
7309642ca8
commit
beba585f37
4 changed files with 16 additions and 17 deletions
|
@ -26,8 +26,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/FlyString.h>
|
||||
#include <AK/Noncopyable.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/Vector.h>
|
||||
#include <LibWeb/Forward.h>
|
||||
|
||||
|
@ -43,12 +43,12 @@ public:
|
|||
void ref() { ref_event_target(); }
|
||||
void unref() { unref_event_target(); }
|
||||
|
||||
void add_event_listener(String event_name, NonnullRefPtr<EventListener>);
|
||||
void add_event_listener(const FlyString& event_name, NonnullRefPtr<EventListener>);
|
||||
|
||||
virtual void dispatch_event(NonnullRefPtr<Event>) = 0;
|
||||
|
||||
struct EventListenerRegistration {
|
||||
String event_name;
|
||||
FlyString event_name;
|
||||
NonnullRefPtr<EventListener> listener;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue