mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibWeb: Generate JavaScript bindings for CSSKeyframeRule
We still need to do a bit of work. For example: `set_key_text` isn't implemented due to its requirements being quite complex, but it's a start.
This commit is contained in:
@@ -32,6 +32,16 @@ public:
|
||||
CSS::Percentage key() const { return m_key; }
|
||||
JS::NonnullGCPtr<CSSStyleDeclaration> style() const { return m_declarations; }
|
||||
|
||||
DeprecatedString key_text() const
|
||||
{
|
||||
return m_key.to_string().release_value_but_fixme_should_propagate_errors().to_deprecated_string();
|
||||
}
|
||||
|
||||
void set_key_text(DeprecatedString const& key_text)
|
||||
{
|
||||
dbgln("FIXME: CSSKeyframeRule::set_key_text is not implemented: {}", key_text);
|
||||
}
|
||||
|
||||
private:
|
||||
CSSKeyframeRule(JS::Realm& realm, CSS::Percentage key, CSSStyleDeclaration& declarations)
|
||||
: CSSRule(realm)
|
||||
|
||||
Reference in New Issue
Block a user