mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +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:
parent
e3612708c7
commit
5ef01e562a
Notes:
sideshowbarker
2024-07-16 23:38:54 +09:00
Author: https://github.com/caoimhebyrne Commit: https://github.com/SerenityOS/serenity/commit/5ef01e562a Pull-request: https://github.com/SerenityOS/serenity/pull/19511
3 changed files with 15 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -3,11 +3,15 @@
|
|||
[Exposed=Window]
|
||||
interface CSSKeyframesRule : CSSRule {
|
||||
attribute CSSOMString name;
|
||||
readonly attribute CSSRuleList cssRules;
|
||||
readonly attribute unsigned long length;
|
||||
|
||||
// FIXME: Implement this
|
||||
// readonly attribute CSSRuleList cssRules;
|
||||
|
||||
getter CSSKeyframeRule (unsigned long index);
|
||||
undefined appendRule(CSSOMString rule);
|
||||
undefined deleteRule(CSSOMString select);
|
||||
CSSKeyframeRule? findRule(CSSOMString select);
|
||||
|
||||
// FIXME: Implement these
|
||||
// undefined appendRule(CSSOMString rule);
|
||||
// undefined deleteRule(CSSOMString select);
|
||||
// CSSKeyframeRule? findRule(CSSOMString select);
|
||||
};
|
||||
|
|
|
@ -8,6 +8,7 @@ libweb_js_bindings(CSS/CSSFontFaceRule)
|
|||
libweb_js_bindings(CSS/CSSGroupingRule)
|
||||
libweb_js_bindings(CSS/CSSImportRule)
|
||||
libweb_js_bindings(CSS/CSSKeyframeRule)
|
||||
libweb_js_bindings(CSS/CSSKeyframesRule)
|
||||
libweb_js_bindings(CSS/CSSMediaRule)
|
||||
libweb_js_bindings(CSS/CSS NAMESPACE)
|
||||
libweb_js_bindings(CSS/CSSRule)
|
||||
|
|
Loading…
Reference in a new issue