mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-05 15:49:15 +00:00
Everywhere: Use HashMap::update() where applicable
This commit is contained in:
parent
0b96690f0c
commit
73967ee90c
Notes:
github-actions[bot]
2025-07-25 14:23:30 +00:00
Author: https://github.com/gmta
Commit: 73967ee90c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5600
Reviewed-by: https://github.com/alimpfard ✅
7 changed files with 13 additions and 31 deletions
|
@ -515,8 +515,7 @@ static WebIDL::ExceptionOr<String> serialize_element(DOM::Element const& element
|
|||
// To copy a namespace prefix map map means to copy the map's keys into a new empty namespace prefix map,
|
||||
// and to copy each of the values in the namespace prefix list associated with each keys' value into a new list
|
||||
// which should be associated with the respective key in the new map.
|
||||
for (auto const& map_entry : namespace_prefix_map)
|
||||
map.set(map_entry.key, map_entry.value);
|
||||
map.update(namespace_prefix_map);
|
||||
|
||||
// 7. Let local prefixes map be an empty map. The map has unique Node prefix strings as its keys, with corresponding namespaceURI Node values
|
||||
// as the map's key values (in this map, the null namespace is represented by the empty string).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue