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

LibWeb: Ensure prototype of CSSKeyframe{s}Rule

This commit is contained in:
Andrew Kaster 2023-06-25 14:06:11 -06:00 committed by Tim Flynn
parent ab9ae8ead3
commit 450b4336b3
2 changed files with 11 additions and 2 deletions

View file

@ -5,6 +5,8 @@
*/
#include "CSSKeyframesRule.h"
#include <LibWeb/Bindings/CSSKeyframesRulePrototype.h>
#include <LibWeb/Bindings/Intrinsics.h>
namespace Web::CSS {
@ -15,8 +17,11 @@ void CSSKeyframesRule::visit_edges(Visitor& visitor)
visitor.visit(keyframe);
}
JS::ThrowCompletionOr<void> CSSKeyframesRule::initialize(JS::Realm&)
JS::ThrowCompletionOr<void> CSSKeyframesRule::initialize(JS::Realm& realm)
{
MUST_OR_THROW_OOM(Base::initialize(realm));
set_prototype(&Bindings::ensure_web_prototype<Bindings::CSSKeyframesRulePrototype>(realm, "CSSKeyframesRule"));
return {};
}