From 15334a68df0ee5017fed8345ecce59652509d185 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Sun, 27 Aug 2023 19:01:28 +1200 Subject: [PATCH] LibWeb: Port CSSKeyframesRules interface from DeprecatedString to String --- Userland/Libraries/LibWeb/CSS/CSSKeyframesRule.h | 5 +---- Userland/Libraries/LibWeb/CSS/CSSKeyframesRule.idl | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Userland/Libraries/LibWeb/CSS/CSSKeyframesRule.h b/Userland/Libraries/LibWeb/CSS/CSSKeyframesRule.h index 741287c1288..7e7b407a598 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSKeyframesRule.h +++ b/Userland/Libraries/LibWeb/CSS/CSSKeyframesRule.h @@ -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> keyframes) diff --git a/Userland/Libraries/LibWeb/CSS/CSSKeyframesRule.idl b/Userland/Libraries/LibWeb/CSS/CSSKeyframesRule.idl index 2f8d3d353e7..e9d9634d332 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSKeyframesRule.idl +++ b/Userland/Libraries/LibWeb/CSS/CSSKeyframesRule.idl @@ -1,6 +1,6 @@ #import -[Exposed=Window] +[Exposed=Window, UseNewAKString] interface CSSKeyframesRule : CSSRule { attribute CSSOMString name; readonly attribute unsigned long length;