mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +00:00
LibWeb/DOM: Add StorageEvent and DragEvent to Document.createEvent
We have since implemented these interfaces.
This commit is contained in:
parent
1d5ca2ae80
commit
05ddf5c718
Notes:
github-actions[bot]
2025-07-11 06:23:57 +00:00
Author: https://github.com/shannonbooth
Commit: 05ddf5c718
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5394
Reviewed-by: https://github.com/gmta ✅
2 changed files with 12 additions and 10 deletions
|
@ -91,6 +91,7 @@
|
|||
#include <LibWeb/HTML/CustomElements/CustomElementReactionNames.h>
|
||||
#include <LibWeb/HTML/CustomElements/CustomElementRegistry.h>
|
||||
#include <LibWeb/HTML/DocumentState.h>
|
||||
#include <LibWeb/HTML/DragEvent.h>
|
||||
#include <LibWeb/HTML/EventLoop/EventLoop.h>
|
||||
#include <LibWeb/HTML/EventNames.h>
|
||||
#include <LibWeb/HTML/Focus.h>
|
||||
|
@ -134,6 +135,7 @@
|
|||
#include <LibWeb/HTML/Scripting/WindowEnvironmentSettingsObject.h>
|
||||
#include <LibWeb/HTML/SharedResourceRequest.h>
|
||||
#include <LibWeb/HTML/Storage.h>
|
||||
#include <LibWeb/HTML/StorageEvent.h>
|
||||
#include <LibWeb/HTML/TraversableNavigable.h>
|
||||
#include <LibWeb/HTML/Window.h>
|
||||
#include <LibWeb/HTML/WindowProxy.h>
|
||||
|
@ -2226,7 +2228,7 @@ WebIDL::ExceptionOr<GC::Ref<Event>> Document::create_event(StringView interface)
|
|||
} else if (interface.equals_ignoring_ascii_case("deviceorientationevent"sv)) {
|
||||
event = Event::create(realm, FlyString {}); // FIXME: Create DeviceOrientationEvent
|
||||
} else if (interface.equals_ignoring_ascii_case("dragevent"sv)) {
|
||||
event = Event::create(realm, FlyString {}); // FIXME: Create DragEvent
|
||||
event = HTML::DragEvent::create(realm, FlyString {});
|
||||
} else if (interface.equals_ignoring_ascii_case("event"sv)
|
||||
|| interface.equals_ignoring_ascii_case("events"sv)) {
|
||||
event = Event::create(realm, FlyString {});
|
||||
|
@ -2244,7 +2246,7 @@ WebIDL::ExceptionOr<GC::Ref<Event>> Document::create_event(StringView interface)
|
|||
|| interface.equals_ignoring_ascii_case("mouseevents"sv)) {
|
||||
event = UIEvents::MouseEvent::create(realm, FlyString {});
|
||||
} else if (interface.equals_ignoring_ascii_case("storageevent"sv)) {
|
||||
event = Event::create(realm, FlyString {}); // FIXME: Create StorageEvent
|
||||
event = HTML::StorageEvent::create(realm, FlyString {});
|
||||
} else if (interface.equals_ignoring_ascii_case("svgevents"sv)) {
|
||||
event = Event::create(realm, FlyString {});
|
||||
} else if (interface.equals_ignoring_ascii_case("textevent"sv)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue