mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:57:44 +00:00
LibWeb: Implement background-clip :^)
We now pass in the Layout Node so that we can read the BoxModelMetrics. Renamed a couple of variables too for clarity.
This commit is contained in:
parent
aa43bee0d1
commit
6234e3fcb3
4 changed files with 51 additions and 9 deletions
|
@ -93,7 +93,7 @@ void Box::paint_background(PaintContext& context)
|
|||
if (computed_values().border_top().width || computed_values().border_right().width || computed_values().border_bottom().width || computed_values().border_left().width)
|
||||
background_rect = enclosing_int_rect(bordered_rect());
|
||||
|
||||
Painting::paint_background(context, background_rect, background_color, background_layers, normalized_border_radius_data());
|
||||
Painting::paint_background(context, *this, background_rect, background_color, background_layers, normalized_border_radius_data());
|
||||
}
|
||||
|
||||
void Box::paint_box_shadow(PaintContext& context)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue