LibWeb: Use enclosing (rather than rounded) rect for overflow clipping

If we use a rounded rect we'll clip off subpixels around the edge.
This commit is contained in:
MacDue 2023-06-19 19:47:46 +01:00 committed by Andreas Kling
parent b471ddfa73
commit 5f8b9f7936
Notes: sideshowbarker 2024-07-17 04:49:48 +09:00

View file

@ -361,7 +361,7 @@ void PaintableBox::apply_clip_overflow_rect(PaintContext& context, PaintPhase ph
if (!m_clipping_overflow) {
context.painter().save();
context.painter().add_clip_rect(context.rounded_device_rect(*clip_rect).to_type<int>());
context.painter().add_clip_rect(context.enclosing_device_rect(*clip_rect).to_type<int>());
m_clipping_overflow = true;
}