mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
LibWeb: Ensure prototype of CSSKeyframe{s}Rule
This commit is contained in:
parent
ab9ae8ead3
commit
450b4336b3
Notes:
sideshowbarker
2024-07-17 00:25:35 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/450b4336b3 Pull-request: https://github.com/SerenityOS/serenity/pull/19799 Reviewed-by: https://github.com/nico ✅ Reviewed-by: https://github.com/trflynn89 ✅
|
@ -5,6 +5,8 @@
|
|||
*/
|
||||
|
||||
#include "CSSKeyframeRule.h"
|
||||
#include <LibWeb/Bindings/CSSKeyframeRulePrototype.h>
|
||||
#include <LibWeb/Bindings/Intrinsics.h>
|
||||
#include <LibWeb/CSS/CSSRuleList.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
@ -15,8 +17,10 @@ void CSSKeyframeRule::visit_edges(Visitor& visitor)
|
|||
visitor.visit(m_declarations);
|
||||
}
|
||||
|
||||
JS::ThrowCompletionOr<void> CSSKeyframeRule::initialize(JS::Realm&)
|
||||
JS::ThrowCompletionOr<void> CSSKeyframeRule::initialize(JS::Realm& realm)
|
||||
{
|
||||
MUST_OR_THROW_OOM(Base::initialize(realm));
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::CSSKeyframeRulePrototype>(realm, "CSSKeyframeRule"));
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue