LibWeb: Simplify static position calculation for block-level boxes

There is no need to save vertical offset in UsedValues to use later,
when static position could be assigned directly upon encountering
abspos box.
This commit is contained in:
Aliaksandr Kalenik 2024-10-06 17:03:33 +02:00 committed by Alexander Kalenik
commit d0463bf652
Notes: github-actions[bot] 2024-10-06 17:26:04 +00:00
3 changed files with 4 additions and 15 deletions

View file

@ -130,9 +130,6 @@ struct LayoutState {
CSSPixels inset_top { 0 };
CSSPixels inset_bottom { 0 };
// Used for calculating the static position of an abspos block-level box.
CSSPixels vertical_offset_of_parent_block_container { 0 };
Vector<LineBox> line_boxes;
CSSPixels margin_box_left() const { return margin_left + border_left_collapsed() + padding_left; }