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:
parent
b471ddfa73
commit
5f8b9f7936
Notes:
sideshowbarker
2024-07-17 04:49:48 +09:00
Author: https://github.com/MacDue Commit: https://github.com/SerenityOS/serenity/commit/5f8b9f7936 Pull-request: https://github.com/SerenityOS/serenity/pull/19492
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue