mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
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:
parent
7225087fa2
commit
d0463bf652
Notes:
github-actions[bot]
2024-10-06 17:26:04 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: d0463bf652
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1652
3 changed files with 4 additions and 15 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue