mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +00:00
LibWeb: Combine background-repeat-x/y pseudo-properties
While right now this doesn't save much complexity, it will do once we care about multiple background layers per node. Then, having a single repeat value per layer will simplify things. It also means we can remove the pseudo-property concept entirely! :^)
This commit is contained in:
parent
5d0acb63ae
commit
1e53768f1b
10 changed files with 52 additions and 105 deletions
|
@ -240,13 +240,9 @@ void NodeWithStyle::apply_style(const CSS::StyleProperties& specified_style)
|
|||
if (border_top_right_radius.has_value())
|
||||
computed_values.set_border_top_right_radius(border_top_right_radius.value()->to_length());
|
||||
|
||||
auto background_repeat_x = specified_style.background_repeat_x();
|
||||
if (background_repeat_x.has_value())
|
||||
computed_values.set_background_repeat_x(background_repeat_x.value());
|
||||
|
||||
auto background_repeat_y = specified_style.background_repeat_y();
|
||||
if (background_repeat_y.has_value())
|
||||
computed_values.set_background_repeat_y(background_repeat_y.value());
|
||||
auto background_repeat = specified_style.background_repeat();
|
||||
if (background_repeat.has_value())
|
||||
computed_values.set_background_repeat(background_repeat.value());
|
||||
|
||||
computed_values.set_display(specified_style.display());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue