mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:27:43 +00:00
LibWeb: Move replaced element layout out of Layout::ReplacedBox
Replaced elements are now laid out by the current formatting context. Since the logic is almost identical in BFC and IFC, it's implemented by static helpers in FormattingContext.
This commit is contained in:
parent
e8d6691470
commit
67732df034
7 changed files with 102 additions and 91 deletions
|
@ -57,9 +57,6 @@ public:
|
|||
void set_intrinsic_height(float height) { m_intrinsic_height = height; }
|
||||
void set_intrinsic_ratio(float ratio) { m_intrinsic_ratio = ratio; }
|
||||
|
||||
float calculate_width() const;
|
||||
float calculate_height() const;
|
||||
|
||||
virtual void prepare_for_replaced_layout() { }
|
||||
|
||||
virtual bool can_have_children() const override { return false; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue