mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +00:00
LibWeb: StackingContext was sorting the wrong list of children
Oops, we're supposed to sort the *parent's* children, not our own.
This commit is contained in:
parent
6f8042d8e5
commit
f7a900367f
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ StackingContext::StackingContext(LayoutBox& box, StackingContext* parent)
|
||||||
m_parent->m_children.append(this);
|
m_parent->m_children.append(this);
|
||||||
|
|
||||||
// FIXME: Don't sort on every append..
|
// FIXME: Don't sort on every append..
|
||||||
quick_sort(m_children, [](auto& a, auto& b) {
|
quick_sort(m_parent->m_children, [](auto& a, auto& b) {
|
||||||
return a->m_box.style().z_index().value_or(0) < b->m_box.style().z_index().value_or(0);
|
return a->m_box.style().z_index().value_or(0) < b->m_box.style().z_index().value_or(0);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue