From f3e533509636be3e788d59b351db2761af1e1a3c Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Sun, 27 Aug 2023 19:03:48 +1200 Subject: [PATCH] LibWeb: Port CSSKeyframeRules interface from DeprecatedString to String --- Userland/Libraries/LibWeb/CSS/CSSKeyframeRule.h | 6 +++--- Userland/Libraries/LibWeb/CSS/CSSKeyframeRule.idl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Userland/Libraries/LibWeb/CSS/CSSKeyframeRule.h b/Userland/Libraries/LibWeb/CSS/CSSKeyframeRule.h index 35231c08c2..0d1abdff70 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSKeyframeRule.h +++ b/Userland/Libraries/LibWeb/CSS/CSSKeyframeRule.h @@ -29,12 +29,12 @@ public: CSS::Percentage key() const { return m_key; } JS::NonnullGCPtr style() const { return m_declarations; } - DeprecatedString key_text() const + String key_text() const { - return m_key.to_string().to_deprecated_string(); + return m_key.to_string(); } - void set_key_text(DeprecatedString const& key_text) + void set_key_text(String const& key_text) { dbgln("FIXME: CSSKeyframeRule::set_key_text is not implemented: {}", key_text); } diff --git a/Userland/Libraries/LibWeb/CSS/CSSKeyframeRule.idl b/Userland/Libraries/LibWeb/CSS/CSSKeyframeRule.idl index 4cf2c131e3..66b8fea4b4 100644 --- a/Userland/Libraries/LibWeb/CSS/CSSKeyframeRule.idl +++ b/Userland/Libraries/LibWeb/CSS/CSSKeyframeRule.idl @@ -1,6 +1,6 @@ #import -[Exposed=Window] +[Exposed=Window, UseNewAKString] interface CSSKeyframeRule : CSSRule { attribute CSSOMString keyText; [SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;