mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +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
|
@ -26,8 +26,8 @@ public:
|
|||
BlockContainer const* next_sibling() const { return verify_cast<BlockContainer>(Node::next_sibling()); }
|
||||
|
||||
bool is_scrollable() const;
|
||||
Gfx::FloatPoint scroll_offset() const { return m_scroll_offset; }
|
||||
void set_scroll_offset(Gfx::FloatPoint);
|
||||
CSSPixelPoint scroll_offset() const { return m_scroll_offset; }
|
||||
void set_scroll_offset(CSSPixelPoint);
|
||||
|
||||
Painting::PaintableWithLines const* paint_box() const;
|
||||
|
||||
|
@ -36,7 +36,7 @@ public:
|
|||
private:
|
||||
virtual bool is_block_container() const final { return true; }
|
||||
|
||||
Gfx::FloatPoint m_scroll_offset;
|
||||
CSSPixelPoint m_scroll_offset;
|
||||
};
|
||||
|
||||
template<>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue