diff options
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibWeb/Painting/StackingContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibWeb/Painting/StackingContext.cpp b/Libraries/LibWeb/Painting/StackingContext.cpp index fffc584947..01e98c3ce3 100644 --- a/Libraries/LibWeb/Painting/StackingContext.cpp +++ b/Libraries/LibWeb/Painting/StackingContext.cpp @@ -41,7 +41,7 @@ StackingContext::StackingContext(LayoutBox& box, StackingContext* parent) m_parent->m_children.append(this); // 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); }); } |