mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 09:36:08 +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
Notes:
sideshowbarker
2024-07-17 18:07:43 +09:00
Author: https://github.com/awesomekling
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