mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 12:08:14 +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:
parent
bc74909308
commit
45425de849
17 changed files with 17 additions and 68 deletions
|
@ -47,7 +47,4 @@ protected:
|
|||
|
||||
}
|
||||
|
||||
namespace Web::Bindings {
|
||||
inline JS::Object* wrap(JS::Realm&, Web::DOM::AbstractRange& object) { return &object; }
|
||||
using AbstractRangeWrapper = Web::DOM::AbstractRange;
|
||||
}
|
||||
WRAPPER_HACK(AbstractRange, Web::DOM)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue