mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 03:08:13 +00:00
LibWeb: Store y offset of current block container in BFC member
This change should make it possible to access y offset of current block container in BFC without explicitly passing it using method parameters.
This commit is contained in:
parent
84e8d5f418
commit
0cd63f851e
2 changed files with 13 additions and 8 deletions
|
@ -46,7 +46,7 @@ public:
|
|||
|
||||
void layout_floating_box(Box const& child, BlockContainer const& containing_block, LayoutMode, AvailableSpace const&, CSSPixels y, LineBuilder* = nullptr);
|
||||
|
||||
void layout_block_level_box(Box const&, BlockContainer const&, LayoutMode, CSSPixels& bottom_of_lowest_margin_box, AvailableSpace const&, CSSPixels& current_y);
|
||||
void layout_block_level_box(Box const&, BlockContainer const&, LayoutMode, CSSPixels& bottom_of_lowest_margin_box, AvailableSpace const&);
|
||||
|
||||
virtual bool can_determine_size_of_child() const override { return true; }
|
||||
virtual void determine_width_of_child(Box const&, AvailableSpace const&) override;
|
||||
|
@ -150,6 +150,8 @@ private:
|
|||
}
|
||||
};
|
||||
|
||||
Optional<CSSPixels> m_y_offset_of_current_block_container;
|
||||
|
||||
BlockMarginState m_margin_state;
|
||||
|
||||
FloatSideData m_left_floats;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue