mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 02:40:49 +00:00
LibWeb: Remove background_image from NodeWithStyle
We now entirely use the background-layers to check images.
This commit is contained in:
committed by
Andreas Kling
parent
a214036509
commit
3d127472ba
@@ -20,9 +20,14 @@ HTMLHtmlElement::~HTMLHtmlElement()
|
||||
bool HTMLHtmlElement::should_use_body_background_properties() const
|
||||
{
|
||||
auto background_color = layout_node()->computed_values().background_color();
|
||||
const auto* background_image = layout_node()->background_image();
|
||||
auto const& background_layers = layout_node()->background_layers();
|
||||
|
||||
return (background_color == Color::Transparent) && !background_image;
|
||||
for (auto& layer : background_layers) {
|
||||
if (layer.image)
|
||||
return false;
|
||||
}
|
||||
|
||||
return (background_color == Color::Transparent);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user