mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:57:35 +00:00
LibWeb: Convert AbstractImageStyleValue to new pixel units
This commit is contained in:
parent
02cd853eee
commit
13b1952929
5 changed files with 53 additions and 53 deletions
|
@ -46,8 +46,8 @@ void MarkerPaintable::paint(PaintContext& context, PaintPhase phase) const
|
|||
image_rect.center_within(enclosing);
|
||||
|
||||
auto device_image_rect = context.enclosing_device_rect(image_rect);
|
||||
list_style_image->resolve_for_size(layout_box(), device_image_rect.size().to_type<int>().to_type<float>());
|
||||
list_style_image->paint(context, device_image_rect.to_type<int>(), computed_values().image_rendering());
|
||||
list_style_image->resolve_for_size(layout_box(), image_rect.size());
|
||||
list_style_image->paint(context, device_image_rect, computed_values().image_rendering());
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue