mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:37:36 +00:00
LibWeb: Pass state to create_independent_formatting_context_if_needed()
Instead of using the current m_state implicitly, make this function take a FormattingState&. This will allow us to use it for throwaway layouts.
This commit is contained in:
parent
ffbd630ca6
commit
726edd2d3b
3 changed files with 10 additions and 10 deletions
|
@ -41,7 +41,7 @@ public:
|
|||
static float compute_width_for_replaced_element(FormattingState const&, ReplacedBox const&);
|
||||
static float compute_height_for_replaced_element(FormattingState const&, ReplacedBox const&);
|
||||
|
||||
OwnPtr<FormattingContext> create_independent_formatting_context_if_needed(Box const& child_box);
|
||||
OwnPtr<FormattingContext> create_independent_formatting_context_if_needed(FormattingState&, Box const& child_box);
|
||||
|
||||
virtual void parent_context_did_dimension_child_root_box() { }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue