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
Notes: sideshowbarker 2024-07-17 10:16:43 +09:00
2 changed files with 2 additions and 5 deletions

View file

@ -31,10 +31,7 @@ public:
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();
}
void set_name(String const& name) { m_name = name; }
private:
CSSKeyframesRule(JS::Realm& realm, FlyString name, Vector<JS::NonnullGCPtr<CSSKeyframeRule>> keyframes)

View file

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