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

LibJS+LibWeb: Add missing JS_DEFINE_ALLOCATOR() for a bunch of classes

This commit is contained in:
Andreas Kling 2023-12-23 15:15:27 +01:00
parent 11c968fa1f
commit f4fa37afd2
15 changed files with 25 additions and 3 deletions

View file

@ -14,6 +14,8 @@
namespace Web::CSS {
JS_DEFINE_ALLOCATOR(CSSFontFaceRule);
JS::NonnullGCPtr<CSSFontFaceRule> CSSFontFaceRule::create(JS::Realm& realm, FontFace&& font_face)
{
return realm.heap().allocate<CSSFontFaceRule>(realm, realm, move(font_face));