mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 12:49:08 +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:
@@ -324,7 +324,7 @@ bool LayoutBox::establishes_stacking_context() const
|
||||
if (node() == document().root())
|
||||
return true;
|
||||
auto position = this->position();
|
||||
auto z_index = specified_style().z_index();
|
||||
auto z_index = style().z_index();
|
||||
if (position == CSS::Position::Absolute || position == CSS::Position::Relative) {
|
||||
if (z_index.has_value())
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user