1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 09:58:14 +00:00

LibWeb: Generate JavaScript bindings for CSSKeyframesRule

This one also needs a bit of work, but it's a nice start.
This commit is contained in:
Caoimhe 2023-06-20 16:30:06 +01:00 committed by Andreas Kling
parent e3612708c7
commit 5ef01e562a
3 changed files with 15 additions and 4 deletions

View file

@ -32,6 +32,12 @@ public:
Vector<JS::NonnullGCPtr<CSSKeyframeRule>> const& keyframes() const { return m_keyframes; }
FlyString const& name() const { return m_name; }
size_t length() { return m_keyframes.size(); }
void set_name(DeprecatedString const& name)
{
m_name = FlyString::from_utf8(name.view()).release_value_but_fixme_should_propagate_errors();
}
private:
CSSKeyframesRule(JS::Realm& realm, FlyString name, Vector<JS::NonnullGCPtr<CSSKeyframeRule>> keyframes)