1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:27:43 +00:00

LibWeb: Factor out compute_y_position

Factor out the code that computes the vertical position of a Box with
respect to its siblings so that it can be used when computing the
absolutely positioned divs as well.
This commit is contained in:
martinfalisse 2022-08-10 19:19:44 +02:00 committed by Andreas Kling
parent 99ae4fa161
commit 65e7126c48
3 changed files with 58 additions and 51 deletions

View file

@ -63,6 +63,8 @@ public:
virtual void run_intrinsic_sizing(Box const&);
float compute_box_y_position_with_respect_to_siblings(Box const&, LayoutState::UsedValues const&);
protected:
FormattingContext(Type, LayoutState&, Box const&, FormattingContext* parent = nullptr);