mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Remove useless move from remove_node_preserving_its_descendants
This commit is contained in:
parent
e64766d54d
commit
acef5a34de
Notes:
github-actions[bot]
2025-01-10 22:39:52 +00:00
Author: https://github.com/gmta
Commit: acef5a34de
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3216
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2024, Jelle Raaijmakers <jelle@ladybird.org>
|
* Copyright (c) 2024-2025, Jelle Raaijmakers <jelle@ladybird.org>
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: BSD-2-Clause
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -2234,7 +2234,7 @@ void remove_node_preserving_its_descendants(GC::Ref<DOM::Node> node)
|
||||||
children.ensure_capacity(node->child_count());
|
children.ensure_capacity(node->child_count());
|
||||||
for (auto* child = node->first_child(); child; child = child->next_sibling())
|
for (auto* child = node->first_child(); child; child = child->next_sibling())
|
||||||
children.append(*child);
|
children.append(*child);
|
||||||
split_the_parent_of_nodes(move(children));
|
split_the_parent_of_nodes(children);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue