LibWeb/CSS: Use FlyString for StylePropertyMap property arguments

The bindings are able to give us FlyString, and that's the type we use
for property names, so let's use that instead of String.
This commit is contained in:
Sam Atkins 2025-10-02 14:09:23 +01:00 committed by Andreas Kling
commit 2f3053bc64
Notes: github-actions[bot] 2025-10-04 20:58:20 +00:00
2 changed files with 6 additions and 6 deletions

View file

@ -40,7 +40,7 @@ void StylePropertyMap::initialize(JS::Realm& realm)
}
// https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-set
WebIDL::ExceptionOr<void> StylePropertyMap::set(String property, Vector<Variant<GC::Root<CSSStyleValue>, String>> values)
WebIDL::ExceptionOr<void> StylePropertyMap::set(FlyString property, Vector<Variant<GC::Root<CSSStyleValue>, String>> values)
{
// The set(property, ...values) method, when called on a StylePropertyMap this, must perform the following steps:
@ -81,7 +81,7 @@ WebIDL::ExceptionOr<void> StylePropertyMap::set(String property, Vector<Variant<
}
// https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-append
WebIDL::ExceptionOr<void> StylePropertyMap::append(String property, Vector<Variant<GC::Root<CSSStyleValue>, String>> values)
WebIDL::ExceptionOr<void> StylePropertyMap::append(FlyString property, Vector<Variant<GC::Root<CSSStyleValue>, String>> values)
{
// The append(property, ...values) method, when called on a StylePropertyMap this, must perform the following steps:
@ -120,7 +120,7 @@ WebIDL::ExceptionOr<void> StylePropertyMap::append(String property, Vector<Varia
}
// https://drafts.css-houdini.org/css-typed-om-1/#dom-stylepropertymap-delete
WebIDL::ExceptionOr<void> StylePropertyMap::delete_(String property)
WebIDL::ExceptionOr<void> StylePropertyMap::delete_(FlyString property)
{
// The delete(property) method, when called on a StylePropertyMap this, must perform the following steps: