diff options
author | asynts <asynts@gmail.com> | 2020-11-27 21:06:15 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-11-27 21:29:21 +0100 |
commit | 4eb23abf065a2265ae9ac5941650a314bc69bd37 (patch) | |
tree | c923d14fadab9f89a9f7d19965a4c16bf9bc3d37 /Libraries | |
parent | 024b2161415110d241019f82fb1ae9e0f47fe02f (diff) | |
download | serenity-4eb23abf065a2265ae9ac5941650a314bc69bd37.zip |
LibWeb: Update m_previous_sibling in TreeNode::insert_before.
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibWeb/TreeNode.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibWeb/TreeNode.h b/Libraries/LibWeb/TreeNode.h index 3cd4742137..96e8155b61 100644 --- a/Libraries/LibWeb/TreeNode.h +++ b/Libraries/LibWeb/TreeNode.h @@ -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_next_sibling = child; + child->m_previous_sibling = node; + if (m_first_child == child) m_first_child = node; |