1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:48:11 +00:00

LibWeb: Port DOMStringMap from DeprecatedString to String

Porting name to FlyString as it is often compared in lookup, and in many
cases, we already have a FlyString to supply anyway.
This commit is contained in:
Shannon Booth 2023-11-22 09:03:44 +13:00 committed by Tim Flynn
parent 49a48fcfac
commit 9cd36839d2
2 changed files with 8 additions and 8 deletions

View file

@ -22,7 +22,7 @@ public:
virtual ~DOMStringMap() override;
DeprecatedString determine_value_of_named_property(DeprecatedString const&) const;
String determine_value_of_named_property(FlyString const&) const;
virtual WebIDL::ExceptionOr<void> set_value_of_new_named_property(String const&, JS::Value) override;
virtual WebIDL::ExceptionOr<void> set_value_of_existing_named_property(String const&, JS::Value) override;
@ -52,8 +52,8 @@ private:
virtual bool named_property_deleter_has_identifier() const override { return false; }
struct NameValuePair {
DeprecatedString name;
DeprecatedString value;
FlyString name;
String value;
};
Vector<NameValuePair> get_name_value_pairs() const;