LibWeb: Fix document element's .scrollHeight and .scrollWidth

We were using the viewport's size as the viewport scrolling area, but
those are completely different things.
This commit is contained in:
Jelle Raaijmakers 2025-06-17 16:55:24 +02:00 committed by Tim Ledbetter
commit e8e6dbcee0
Notes: github-actions[bot] 2025-06-17 16:18:46 +00:00
8 changed files with 36 additions and 16 deletions

View file

@ -298,8 +298,8 @@ public:
void set_scroll_top(double y);
void set_scroll_left(double x);
int scroll_width() const;
int scroll_height() const;
int scroll_width();
int scroll_height();
bool is_actually_disabled() const;