LibWeb: Use ints instead of DevicePixels in PaintOuterBoxShadowParams

DevicePixels concept should not leak from painting recording phase.
This commit is contained in:
Aliaksandr Kalenik 2024-06-07 16:02:50 +03:00 committed by Andreas Kling
commit 22bb476b6f
Notes: sideshowbarker 2024-07-17 08:55:54 +09:00
4 changed files with 120 additions and 119 deletions

View file

@ -22,12 +22,12 @@ Gfx::IntRect PaintOuterBoxShadow::bounding_rect() const
void PaintOuterBoxShadow::translate_by(Gfx::IntPoint const& offset)
{
outer_box_shadow_params.device_content_rect.translate_by(offset.to_type<DevicePixels>());
outer_box_shadow_params.device_content_rect.translate_by(offset);
}
void PaintInnerBoxShadow::translate_by(Gfx::IntPoint const& offset)
{
outer_box_shadow_params.device_content_rect.translate_by(offset.to_type<DevicePixels>());
outer_box_shadow_params.device_content_rect.translate_by(offset);
}
}