mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:47:34 +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
|
@ -44,6 +44,9 @@ public:
|
|||
|
||||
static bool creates_block_formatting_context(const Box&);
|
||||
|
||||
static float compute_width_for_replaced_element(const ReplacedBox&);
|
||||
static float compute_height_for_replaced_element(const ReplacedBox&);
|
||||
|
||||
protected:
|
||||
FormattingContext(Box&, FormattingContext* parent = nullptr);
|
||||
virtual ~FormattingContext();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue