1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 05:18:12 +00:00

LibWeb: Move MouseEvent into the UIEvents namespace

Named after the UIEvents specification that houses MouseEvent.
This commit is contained in:
Andreas Kling 2020-07-28 17:21:23 +02:00
parent c99a3efc5b
commit 8b55d3d86e
7 changed files with 17 additions and 16 deletions

View file

@ -33,7 +33,7 @@ namespace Bindings {
EventWrapper* wrap(JS::GlobalObject& global_object, DOM::Event& event)
{
if (event.is_mouse_event())
return static_cast<MouseEventWrapper*>(wrap_impl(global_object, static_cast<DOM::MouseEvent&>(event)));
return static_cast<MouseEventWrapper*>(wrap_impl(global_object, static_cast<UIEvents::MouseEvent&>(event)));
return static_cast<EventWrapper*>(wrap_impl(global_object, event));
}