mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-16 04:59:23 +00:00
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:
parent
7778f3b279
commit
2f3053bc64
Notes:
github-actions[bot]
2025-10-04 20:58:20 +00:00
Author: https://github.com/AtkinsSJ
Commit: 2f3053bc64
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6370
2 changed files with 6 additions and 6 deletions
|
@ -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:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue