LibWeb: Draw a scrollbar gutter when the scrollbar is enlarged

This commit is contained in:
Timothy Flynn 2025-04-21 09:10:55 -04:00 committed by Tim Flynn
commit 66e422b4f1
Notes: github-actions[bot] 2025-04-22 15:30:14 +00:00
7 changed files with 53 additions and 35 deletions

View file

@ -403,14 +403,15 @@ struct PaintNestedDisplayList {
};
struct PaintScrollBar {
int scroll_frame_id;
Gfx::IntRect rect;
int scroll_frame_id { 0 };
Gfx::IntRect gutter_rect;
Gfx::IntRect thumb_rect;
CSSPixelFraction scroll_size;
bool vertical;
void translate_by(Gfx::IntPoint const& offset)
{
rect.translate_by(offset);
thumb_rect.translate_by(offset);
}
};