mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 11:48:32 +00:00
LibWeb: Rename is_scrollable() to could_be_scrolled_by_wheel_event()
Previous name for misleading because it checks if box could be scrolled by user input event which is diffent from checking if box is scrollable. For example box with `overflow: hidden` is scrollable but it can't be scrolled by user input event.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
dd37d1c536
commit
74dde4dc0f
@@ -1651,7 +1651,7 @@ void Node::serialize_tree_as_json(JsonObjectSerializer<StringBuilder>& object) c
|
||||
}
|
||||
|
||||
if (paintable_box()) {
|
||||
if (paintable_box()->is_scrollable()) {
|
||||
if (paintable_box()->could_be_scrolled_by_wheel_event()) {
|
||||
MUST(object.add("scrollable"sv, true));
|
||||
}
|
||||
if (!paintable_box()->is_visible()) {
|
||||
|
||||
Reference in New Issue
Block a user