From 5f8b9f79368e495cac78ba3cc884a61d39b0693f Mon Sep 17 00:00:00 2001 From: MacDue Date: Mon, 19 Jun 2023 19:47:46 +0100 Subject: [PATCH] LibWeb: Use enclosing (rather than rounded) rect for overflow clipping If we use a rounded rect we'll clip off subpixels around the edge. --- Userland/Libraries/LibWeb/Painting/PaintableBox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp b/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp index bbdf0741cc..a9fa62db31 100644 --- a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp +++ b/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp @@ -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()); + context.painter().add_clip_rect(context.enclosing_device_rect(*clip_rect).to_type()); m_clipping_overflow = true; }