1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:18:12 +00:00

LibWeb: Rename PaintableBox::effective_offset() => offset()

Since this function no longer does any computation, just "offset" seems
like a fine name.
This commit is contained in:
Andreas Kling 2023-08-15 15:42:38 +02:00
parent 25a3d0d643
commit 79db9c27c6
3 changed files with 8 additions and 6 deletions

View file

@ -115,16 +115,16 @@ void PaintableBox::set_content_size(CSSPixelSize size)
layout_box().did_set_content_size();
}
CSSPixelPoint PaintableBox::effective_offset() const
CSSPixelPoint PaintableBox::offset() const
{
return m_offset;
}
CSSPixelRect PaintableBox::compute_absolute_rect() const
{
CSSPixelRect rect { effective_offset(), content_size() };
CSSPixelRect rect { offset(), content_size() };
for (auto const* block = containing_block(); block && block->paintable(); block = block->paintable()->containing_block())
rect.translate_by(block->paintable_box()->effective_offset());
rect.translate_by(block->paintable_box()->offset());
return rect;
}