mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:07:35 +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:
parent
f02ccffaa8
commit
e3612708c7
3 changed files with 12 additions and 1 deletions
|
@ -32,6 +32,16 @@ public:
|
||||||
CSS::Percentage key() const { return m_key; }
|
CSS::Percentage key() const { return m_key; }
|
||||||
JS::NonnullGCPtr<CSSStyleDeclaration> style() const { return m_declarations; }
|
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:
|
private:
|
||||||
CSSKeyframeRule(JS::Realm& realm, CSS::Percentage key, CSSStyleDeclaration& declarations)
|
CSSKeyframeRule(JS::Realm& realm, CSS::Percentage key, CSSStyleDeclaration& declarations)
|
||||||
: CSSRule(realm)
|
: CSSRule(realm)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#import <CSS/CSSRule.idl>
|
#import <CSS/CSSRule.idl>
|
||||||
|
|
||||||
[Exposed = Window]
|
[Exposed=Window]
|
||||||
interface CSSKeyframeRule : CSSRule {
|
interface CSSKeyframeRule : CSSRule {
|
||||||
attribute CSSOMString keyText;
|
attribute CSSOMString keyText;
|
||||||
[SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
|
[SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
|
||||||
|
|
|
@ -7,6 +7,7 @@ libweb_js_bindings(CSS/CSSConditionRule)
|
||||||
libweb_js_bindings(CSS/CSSFontFaceRule)
|
libweb_js_bindings(CSS/CSSFontFaceRule)
|
||||||
libweb_js_bindings(CSS/CSSGroupingRule)
|
libweb_js_bindings(CSS/CSSGroupingRule)
|
||||||
libweb_js_bindings(CSS/CSSImportRule)
|
libweb_js_bindings(CSS/CSSImportRule)
|
||||||
|
libweb_js_bindings(CSS/CSSKeyframeRule)
|
||||||
libweb_js_bindings(CSS/CSSMediaRule)
|
libweb_js_bindings(CSS/CSSMediaRule)
|
||||||
libweb_js_bindings(CSS/CSS NAMESPACE)
|
libweb_js_bindings(CSS/CSS NAMESPACE)
|
||||||
libweb_js_bindings(CSS/CSSRule)
|
libweb_js_bindings(CSS/CSSRule)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue