mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:37:45 +00:00
LibWeb: Rename is_scrollable() to is_user_scrollable()
is_user_scrollable() is more appropriate name since this function returns true only for boxes scrollable by user interaction.
This commit is contained in:
parent
491da2a810
commit
5f364e9bc1
4 changed files with 4 additions and 4 deletions
|
@ -55,7 +55,7 @@ bool Box::is_scroll_container() const
|
|||
|| overflow_value_makes_box_a_scroll_container(computed_values().overflow_y());
|
||||
}
|
||||
|
||||
bool Box::is_scrollable() const
|
||||
bool Box::is_user_scrollable() const
|
||||
{
|
||||
// FIXME: Support horizontal scroll as well (overflow-x)
|
||||
return computed_values().overflow_y() == CSS::Overflow::Scroll || computed_values().overflow_y() == CSS::Overflow::Auto;
|
||||
|
|
|
@ -54,7 +54,7 @@ public:
|
|||
|
||||
bool is_scroll_container() const;
|
||||
|
||||
bool is_scrollable() const;
|
||||
bool is_user_scrollable() const;
|
||||
|
||||
protected:
|
||||
Box(DOM::Document&, DOM::Node*, NonnullRefPtr<CSS::StyleProperties>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue