mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 11:27:35 +00:00
LibWeb: Resolve Lengths to CSSPixels
This commit is contained in:
parent
7d40e3eb0d
commit
8cc0bdf777
13 changed files with 44 additions and 44 deletions
|
@ -435,7 +435,7 @@ static void paint_text_decoration(PaintContext& context, Gfx::Painter& painter,
|
|||
if (computed_thickness.is_auto())
|
||||
return max(glyph_height * 0.1f, 1.f);
|
||||
|
||||
return CSSPixels(computed_thickness.to_px(text_node));
|
||||
return computed_thickness.to_px(text_node);
|
||||
}();
|
||||
auto device_line_thickness = context.rounded_device_pixels(css_line_thickness);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue