mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:17:44 +00:00
LibWeb: Convert BorderData::width to CSSPixels
The `clip_shrink` optimization in `paint_background()` now also correctly uses DevicePixels, instead of reducing a DevicePixel rect by a CSSPixels amount.
This commit is contained in:
parent
072ab94889
commit
5ee1b7db7c
7 changed files with 20 additions and 20 deletions
|
@ -106,7 +106,7 @@ void paint_border(PaintContext& context, BorderEdge edge, DevicePixelRect const&
|
|||
|
||||
auto color = border_color(edge, borders_data);
|
||||
auto border_style = border_data.line_style;
|
||||
auto device_pixel_width = context.enclosing_device_pixels(width);
|
||||
auto device_pixel_width = context.rounded_device_pixels(width);
|
||||
|
||||
struct Points {
|
||||
DevicePixelPoint p1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue