mirror of
https://github.com/RGBCube/serenity
synced 2025-06-26 20:22:08 +00:00

Similar to create() in LibJS, wrap() et al. are on a low enough level to warrant passing a Realm directly instead of relying on the current realm from the VM, as a wrapper may need to be allocated while no JS is being executed.
16 lines
261 B
C++
16 lines
261 B
C++
/*
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibJS/Forward.h>
|
|
#include <LibWeb/Forward.h>
|
|
|
|
namespace Web::Bindings {
|
|
|
|
CSSRuleWrapper* wrap(JS::Realm&, CSS::CSSRule&);
|
|
|
|
}
|