mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-31 13:48:25 +00:00
LibWeb: Add LayoutStyle, a place to store style info for layout & paint
StyleProperties is really only the specified "input" to what eventually becomes the used/computed style we use for layout and painting. Unlike StyleProperties, LayoutStyle will have strongly typed values for everything it contains (i.e no CSS::ValueID or strings, etc.) This first patch moves z-index into LayoutStyle.
This commit is contained in:
@@ -42,7 +42,7 @@ StackingContext::StackingContext(LayoutBox& box, StackingContext* parent)
|
||||
|
||||
// FIXME: Don't sort on every append..
|
||||
quick_sort(m_children, [](auto& a, auto& b) {
|
||||
return a->m_box.specified_style().z_index().value_or(0) < b->m_box.specified_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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user