mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibWeb: Implement mask-image CSS property support
Implemented by reusing AddMask display list item that was initially added for `background-clip` property. Progress on flashlight effect on https://null.com/games/athena-crisis
This commit is contained in:
committed by
Andreas Kling
parent
7b7bb60393
commit
96a35767b6
@@ -1177,6 +1177,10 @@ void PaintableBox::resolve_paint_properties()
|
||||
if (background_layers) {
|
||||
m_resolved_background = resolve_background_layers(*background_layers, *this, background_color, background_rect, normalized_border_radii_data());
|
||||
};
|
||||
|
||||
if (auto mask_image = computed_values.mask_image()) {
|
||||
mask_image->resolve_for_size(layout_node_with_style_and_box_metrics(), absolute_padding_box_rect().size());
|
||||
}
|
||||
}
|
||||
|
||||
void PaintableWithLines::resolve_paint_properties()
|
||||
|
||||
Reference in New Issue
Block a user