1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:07:45 +00:00

LibWeb: Don't convert to floating point in CSS::EdgeRect

This commit is contained in:
Zaggy1024 2023-08-31 17:16:39 -05:00 committed by Alexander Kalenik
parent 9d4a1ac2b3
commit 709767cc4b
3 changed files with 8 additions and 8 deletions

View file

@ -181,7 +181,7 @@ Optional<CSSPixelRect> PaintableBox::get_clip_rect() const
auto clip = computed_values().clip();
if (clip.is_rect() && layout_box().is_absolutely_positioned()) {
auto border_box = absolute_border_box_rect();
return clip.to_rect().resolved(layout_node(), border_box.to_type<double>()).to_type<CSSPixels>();
return clip.to_rect().resolved(layout_node(), border_box);
}
return {};
}