mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 08:36:12 +00:00
LibWeb: Add Layout::Box::is_scroll_container()
The computed `overflow` property values determine whether a box is a scroll container or not, so let's have a simple helper for asking this.
This commit is contained in:
parent
3932afdc6a
commit
8038824211
Notes:
sideshowbarker
2024-07-17 10:54:57 +09:00
Author: https://github.com/awesomekling
Commit: 8038824211
2 changed files with 23 additions and 0 deletions
|
@ -42,6 +42,8 @@ public:
|
|||
|
||||
virtual JS::GCPtr<Painting::Paintable> create_paintable() const override;
|
||||
|
||||
bool is_scroll_container() const;
|
||||
|
||||
bool is_scrollable() const;
|
||||
CSSPixelPoint scroll_offset() const { return m_scroll_offset; }
|
||||
void set_scroll_offset(CSSPixelPoint);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue