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

LibWeb: Rename FormattingContext::compute_position() => compute_inset()

This function computes the used inset properties, not the position of a
box per se, so let's call it something more accurate.
This commit is contained in:
Andreas Kling 2022-03-27 15:35:28 +02:00
parent c49c036c84
commit d77dfc6b48
3 changed files with 3 additions and 3 deletions

View file

@ -766,7 +766,7 @@ void FormattingContext::compute_height_for_absolutely_positioned_replaced_elemen
m_state.get_mutable(box).content_height = compute_height_for_replaced_element(m_state, box);
}
void FormattingContext::compute_position(Box const& box)
void FormattingContext::compute_inset(Box const& box)
{
// 9.4.3 Relative positioning
// Once a box has been laid out according to the normal flow or floated, it may be shifted relative to this position.