mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 20:25:07 +00:00
LibWeb: Let supported_property_names() return Vector<FlyString>
Ultimately, this API should probably be replaced with something that updates a cache on relevant DOM mutations instead of regenerating the list of property names again and again.
This commit is contained in:
parent
0178929387
commit
41f56b0df9
19 changed files with 42 additions and 48 deletions
|
@ -149,10 +149,10 @@ void Storage::broadcast(StringView key, StringView old_value, StringView new_val
|
|||
// FIXME: Implement.
|
||||
}
|
||||
|
||||
Vector<String> Storage::supported_property_names() const
|
||||
Vector<FlyString> Storage::supported_property_names() const
|
||||
{
|
||||
// The supported property names on a Storage object storage are the result of running get the keys on storage's map.
|
||||
Vector<String> names;
|
||||
Vector<FlyString> names;
|
||||
names.ensure_capacity(m_map.size());
|
||||
for (auto const& key : m_map.keys())
|
||||
names.unchecked_append(key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue