mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
LibWeb: Port CSSKeyframesRules interface from DeprecatedString to String
This commit is contained in:
parent
826374d04b
commit
15334a68df
Notes:
sideshowbarker
2024-07-17 10:16:43 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/15334a68df Pull-request: https://github.com/SerenityOS/serenity/pull/20799 Reviewed-by: https://github.com/ADKaster ✅
2 changed files with 2 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#import <CSS/CSSRule.idl>
|
||||
|
||||
[Exposed=Window]
|
||||
[Exposed=Window, UseNewAKString]
|
||||
interface CSSKeyframesRule : CSSRule {
|
||||
attribute CSSOMString name;
|
||||
readonly attribute unsigned long length;
|
||||
|
|
Loading…
Reference in a new issue