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:
parent
9d4a1ac2b3
commit
709767cc4b
3 changed files with 8 additions and 8 deletions
|
@ -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 {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue