mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-01 16:58:52 +00:00
LibWeb: Add the missing SubmitEvent IDL constructor
This commit also removes the SubmitEvent.cpp file, as all of the method implementations were trivial and could be inlined into the header file.
This commit is contained in:
parent
d44857d34d
commit
1e8ba0d9d3
Notes:
sideshowbarker
2024-07-18 03:14:14 +09:00
Author: https://github.com/IdanHo
Commit: 1e8ba0d9d3
Pull-request: https://github.com/SerenityOS/serenity/pull/10299
5 changed files with 31 additions and 39 deletions
|
@ -59,7 +59,9 @@ void HTMLFormElement::submit_form(RefPtr<HTMLElement> submitter, bool from_submi
|
|||
if (submitter != this)
|
||||
submitter_button = submitter;
|
||||
|
||||
auto submit_event = SubmitEvent::create(EventNames::submit, submitter_button);
|
||||
SubmitEventInit event_init {};
|
||||
event_init.submitter = submitter_button;
|
||||
auto submit_event = SubmitEvent::create(EventNames::submit, event_init);
|
||||
submit_event->set_bubbles(true);
|
||||
submit_event->set_cancelable(true);
|
||||
bool continue_ = dispatch_event(submit_event);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue