mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibWeb: Convert Layout Boxes to new pixel units
This commit is contained in:
parent
c70dcaefcd
commit
65cdf89a8b
Notes:
sideshowbarker
2024-07-17 05:58:46 +09:00
Author: https://github.com/AtkinsSJ
Commit: 65cdf89a8b
Pull-request: https://github.com/SerenityOS/serenity/pull/16514
Reviewed-by: https://github.com/MacDue
Reviewed-by: https://github.com/linusg ✅
11 changed files with 29 additions and 28 deletions
|
@ -27,7 +27,7 @@ bool BlockContainer::is_scrollable() const
|
|||
return computed_values().overflow_y() == CSS::Overflow::Scroll;
|
||||
}
|
||||
|
||||
void BlockContainer::set_scroll_offset(Gfx::FloatPoint offset)
|
||||
void BlockContainer::set_scroll_offset(CSSPixelPoint offset)
|
||||
{
|
||||
// FIXME: If there is horizontal and vertical scroll ignore only part of the new offset
|
||||
if (offset.y() < 0 || m_scroll_offset == offset)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue