mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:07:44 +00:00
LibWeb: Remove background-repeat/image fields and getters
These aren't needed now that we render using background_layers instead. The one casualty is the resolved style for background-repeat, but that was incorrect anyway.
This commit is contained in:
parent
e8b7946732
commit
a214036509
5 changed files with 0 additions and 57 deletions
|
@ -366,48 +366,6 @@ Vector<CSS::BackgroundLayerData> const* Document::background_layers() const
|
|||
return &body_layout_node->background_layers();
|
||||
}
|
||||
|
||||
RefPtr<Gfx::Bitmap> Document::background_image() const
|
||||
{
|
||||
auto* body_element = body();
|
||||
if (!body_element)
|
||||
return {};
|
||||
|
||||
auto* body_layout_node = body_element->layout_node();
|
||||
if (!body_layout_node)
|
||||
return {};
|
||||
|
||||
auto background_image = body_layout_node->background_image();
|
||||
if (!background_image)
|
||||
return {};
|
||||
return background_image->bitmap();
|
||||
}
|
||||
|
||||
CSS::Repeat Document::background_repeat_x() const
|
||||
{
|
||||
auto* body_element = body();
|
||||
if (!body_element)
|
||||
return CSS::Repeat::Repeat;
|
||||
|
||||
auto* body_layout_node = body_element->layout_node();
|
||||
if (!body_layout_node)
|
||||
return CSS::Repeat::Repeat;
|
||||
|
||||
return body_layout_node->computed_values().background_repeat().repeat_x;
|
||||
}
|
||||
|
||||
CSS::Repeat Document::background_repeat_y() const
|
||||
{
|
||||
auto* body_element = body();
|
||||
if (!body_element)
|
||||
return CSS::Repeat::Repeat;
|
||||
|
||||
auto* body_layout_node = body_element->layout_node();
|
||||
if (!body_layout_node)
|
||||
return CSS::Repeat::Repeat;
|
||||
|
||||
return body_layout_node->computed_values().background_repeat().repeat_y;
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/urls-and-fetching.html#parse-a-url
|
||||
AK::URL Document::parse_url(String const& url) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue