mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
LibHTML: Add some convenient geometry getters on LayoutNode
Add x(), y(), size() and position() and use them around the codebase.
This commit is contained in:
parent
aefc7f9b22
commit
3309bdf722
7 changed files with 26 additions and 22 deletions
|
@ -21,6 +21,6 @@ void LayoutListItem::layout()
|
|||
append_child(*m_marker);
|
||||
}
|
||||
|
||||
Rect marker_rect { rect().x() - 8, rect().y(), 4, rect().height() };
|
||||
Rect marker_rect { x() - 8, y(), 4, height() };
|
||||
m_marker->set_rect(marker_rect);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue