1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 17:37:34 +00:00

LibWeb: Use the WRAPPER_HACK() macro instead of hand-coding wrap()

This macro will soon go away, but let's start by replacing all the
hand-coded versions of wrap() with this macro that expands to the same
exact thing.
This commit is contained in:
Andreas Kling 2022-09-04 21:48:07 +02:00
parent bc74909308
commit 45425de849
17 changed files with 17 additions and 68 deletions

View file

@ -26,7 +26,4 @@ public:
}
namespace Web::Bindings {
inline JS::Object* wrap(JS::Realm&, Web::UIEvents::FocusEvent& object) { return &object; }
using FocusEventWrapper = Web::UIEvents::FocusEvent;
}
WRAPPER_HACK(FocusEvent, Web::UIEvents)