1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:27:45 +00:00

LibWeb: Port CSSKeyframesRules interface from DeprecatedString to String

This commit is contained in:
Shannon Booth 2023-08-27 19:01:28 +12:00 committed by Andrew Kaster
parent 826374d04b
commit 15334a68df
2 changed files with 2 additions and 5 deletions

View file

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

View file

@ -1,6 +1,6 @@
#import <CSS/CSSRule.idl> #import <CSS/CSSRule.idl>
[Exposed=Window] [Exposed=Window, UseNewAKString]
interface CSSKeyframesRule : CSSRule { interface CSSKeyframesRule : CSSRule {
attribute CSSOMString name; attribute CSSOMString name;
readonly attribute unsigned long length; readonly attribute unsigned long length;