mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 09:17:35 +00:00
LibWeb: Update m_previous_sibling in TreeNode::insert_before.
This commit is contained in:
parent
024b216141
commit
4eb23abf06
1 changed files with 2 additions and 0 deletions
|
@ -380,6 +380,8 @@ inline void TreeNode<T>::insert_before(NonnullRefPtr<T> node, RefPtr<T> child, b
|
||||||
node->m_previous_sibling = child->m_previous_sibling;
|
node->m_previous_sibling = child->m_previous_sibling;
|
||||||
node->m_next_sibling = child;
|
node->m_next_sibling = child;
|
||||||
|
|
||||||
|
child->m_previous_sibling = node;
|
||||||
|
|
||||||
if (m_first_child == child)
|
if (m_first_child == child)
|
||||||
m_first_child = node;
|
m_first_child = node;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue