mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
LibWeb: Port FormDataEvent to new String
This commit is contained in:
committed by
Linus Groh
parent
eed69e5093
commit
bb7ae423d5
@@ -10,13 +10,13 @@
|
||||
|
||||
namespace Web::HTML {
|
||||
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<FormDataEvent>> FormDataEvent::construct_impl(JS::Realm& realm, DeprecatedString const& event_name, FormDataEventInit const& event_init)
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<FormDataEvent>> FormDataEvent::construct_impl(JS::Realm& realm, FlyString const& event_name, FormDataEventInit const& event_init)
|
||||
{
|
||||
return MUST_OR_THROW_OOM(realm.heap().allocate<FormDataEvent>(realm, realm, event_name, event_init));
|
||||
}
|
||||
|
||||
FormDataEvent::FormDataEvent(JS::Realm& realm, DeprecatedString const& event_name, FormDataEventInit const& event_init)
|
||||
: DOM::Event(realm, event_name, event_init)
|
||||
FormDataEvent::FormDataEvent(JS::Realm& realm, FlyString const& event_name, FormDataEventInit const& event_init)
|
||||
: DOM::Event(realm, event_name.to_deprecated_fly_string(), event_init)
|
||||
, m_form_data(event_init.form_data)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user